-
Notifications
You must be signed in to change notification settings - Fork 716
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add cloud nat template #429
base: master
Are you sure you want to change the base?
Conversation
resources = [ | ||
{ | ||
'name': context.env['name'], | ||
# compute.v1.router seems to be doing the job though |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://cloud.google.com/compute/docs/reference/rest/v1/routers Managed NAT got GA, so itś part of compute.v1
'name': context.env['name'], | ||
# compute.v1.router seems to be doing the job though | ||
# doc says compute.beta has the NAT feature. | ||
'type': 'compute.v1.router', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please use gcp-types/compute-v1:routers as type, we are moving towards the GCP types.
[[ "$output" =~ "udpIdleTimeoutSec: 55" ]] | ||
[[ "$output" =~ "/regions/us-east1/addresses/ip-${RAND}" ]] | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you please add the test from HA NAT which actually creates an pivate instance and able to reach the internet?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mean the same as this test?
https://github.com/GoogleCloudPlatform/deploymentmanager-samples/tree/master/community/cloud-foundation/templates/nat_gateway
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I would be happy to see an instance using the managed NAT ( and maybe one not using it) and verifying it's internet connectivity via SSH.
@sourced-nan Will you have a chance to incorporate Adam's feedback? |
Cloud nat template for native nat service