Skip to content

Commit

Permalink
Merge pull request hashicorp#88 from hashicorp/tf-push-path
Browse files Browse the repository at this point in the history
Add path to terraform push commands.
  • Loading branch information
bensojona authored Oct 18, 2016
2 parents 1cf5c2d + d92e636 commit d59ffa5
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions terraform/providers/aws/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,10 @@ If you decide to update any of the artifact names, be sure those name changes ar
- [ ] From the [root directory](https://github.com/hashicorp/best-practices), navigate to the [`global` folder](https://github.com/hashicorp/best-practices/blob/master/terraform/providers/aws/global): `cd terraform/providers/aws/global/.`
- [ ] Configure & pull remote state: `terraform remote config -backend-config name=$ATLAS_USERNAME/aws-global`
- [ ] Get latest modules: `terraform get`
- [ ] Push to Atlas: `terraform push -name $ATLAS_USERNAME/aws-global -var "atlas_token=$ATLAS_TOKEN" -var "atlas_username=$ATLAS_USERNAME"`
- The plan in Atlas **will** fail, this is okay
- [ ] Push to Atlas: `terraform push -name $ATLAS_USERNAME/aws-global -var "atlas_token=$ATLAS_TOKEN" -var "atlas_username=$ATLAS_USERNAME" ../../../../terraform/`
- The path `../../../../terraform/` must be provided so that the Terraform command and project
files are referenced correctly.
- The first plan in Atlas **will** fail, this is okay. We'll correct this in the steps below.
- [ ] Navigate to the `aws-global` [environment](https://atlas.hashicorp.com/environments)
- [ ] In "Settings": check **Plan on artifact uploads** and click **Save**
- [ ] In "Variables": add the below Environment Variables with appropriate values
Expand Down Expand Up @@ -201,8 +203,10 @@ If you decide to update any of the artifact names, be sure those name changes ar
- [ ] From the [root directory](https://github.com/hashicorp/best-practices), navigate to the [`us_east_1_prod` folder](https://github.com/hashicorp/best-practices/blob/master/terraform/providers/aws/us_east_1_prod): `cd terraform/providers/aws/us_east_1_prod/.`
- [ ] Configure & pull remote state: `terraform remote config -backend-config name=$ATLAS_USERNAME/aws-us-east-1-prod`
- [ ] Get latest modules: `terraform get`
- [ ] Push to Atlas: `terraform push -name $ATLAS_USERNAME/aws-us-east-1-prod -var "atlas_token=$ATLAS_TOKEN" -var "atlas_username=$ATLAS_USERNAME"`
- The plan in Atlas **will** fail, this is okay
- [ ] Push to Atlas: `terraform push -name $ATLAS_USERNAME/aws-us-east-1-prod -var "atlas_token=$ATLAS_TOKEN" -var "atlas_username=$ATLAS_USERNAME" ../../../../terraform/`
- The path `../../../../terraform/` must be provided so that the Terraform command and project
files are referenced correctly.
- The first plan in Atlas **will** fail, this is okay. We'll correct this in the steps below.
- [ ] Navigate to the `aws-us-east-1-prod` [environment](https://atlas.hashicorp.com/environments)
- [ ] In "Settings": check **Plan on artifact uploads** and click **Save**
- [ ] In "Variables": add the below Environment Variables with appropriate values
Expand Down

0 comments on commit d59ffa5

Please sign in to comment.