-
Notifications
You must be signed in to change notification settings - Fork 1
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
Refactor packer and terraform scripts #44
Conversation
|
||
4. Create a `terraform/terraform.tfvars` file with the following content | ||
|
||
```bash | ||
project = "<your_GCP_project_ID>" | ||
credentials_file = "gcp.key.json" |
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.
have added it as the default value, so removed
@@ -0,0 +1,98 @@ | |||
resource "google_compute_firewall" "containerssh_allow_all" { |
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.
extracted from main.tf
.
They are the same firewall rules as previously
@@ -0,0 +1,118 @@ | |||
resource "google_compute_instance" "gateway_vm" { |
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.
extracted from main.tf
.
They are the same content as previously
@@ -0,0 +1,16 @@ | |||
output "vm_ip_addresses" { |
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.
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.
this one looks great! :D
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.
Thank's it looks better.
Description
This PR will
Testing the PR
terraform apply
should work