forked from ned1313/Implementing-Terraform-on-AWS
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
55 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,16 @@ | ||
aws config | ||
# Run the aws configure command to set your access and secret keys | ||
aws configure | ||
|
||
# Rename the terraform.tfvars.example file to terraform.tfvars and change the region | ||
# to your desired region | ||
|
||
# Initialize the terraform configuration | ||
terraform init | ||
|
||
# Plan the terraform deployment | ||
terraform plan -out vpc.tfplan | ||
terraform apply "vpc.tfplan" | ||
|
||
# Apply the deployment | ||
terraform apply "vpc.tfplan" | ||
|
||
# Do not destroy the VPC until you have completed the next module |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
region = "us-east-1" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
# You will be using two AWS profiles | ||
# infra will be a user in the infrastructure account | ||
# sec will be a user in the development account | ||
# You will need to have created these users in the console already | ||
|
||
aws configure --profile infra | ||
|
||
# Provide the Access and Secret keys | ||
|
||
aws configure --profile sec | ||
|
||
# Provide the Access and Secret keys |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters