The thing is very weird. In GCP. I have a program that first of all creates a new firewall rule to allow ssh, and secondly it launches a new instance. Both of them are linked using TargetTag(Firewall rule) and Tag(new instance).

The tag is always the same, it never changes. The thing is that if I don't delete the firewall rule when I finish and I run again the program, the firewall rule is not made again because already exists but the rule is not working for the new instance.

I know it does not make sense but anyone as any idea of what could it be?

  • There are no known problems with attaching firewall rules to new instances that I know of. This is a basic level feature. If there was a problem, customers would be screaming. This means you need to look into the processes that you are doing. However, there are no details in your question to analyze to point to a solution. – John Hanley Aug 22 '19 at 23:42

I would start by creating an instance manually with the tag you mention and validate if the firewall that has been already created works for this new instance. This will provide light to catch if the issue is with the firewall or the program.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.