Skip to content

Commit

Permalink
fix: treat AWS account IDs as strings (#634)
Browse files Browse the repository at this point in the history
  • Loading branch information
jakeyheath authored Apr 26, 2022
1 parent d825491 commit d8f52bc
Show file tree
Hide file tree
Showing 15 changed files with 40 additions and 40 deletions.
2 changes: 1 addition & 1 deletion templates/templates/component/terraform/fogg.tf.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ variable "aws_accounts" {
type = map(string)
default = {
{{ range $account, $id := .Accounts }}
{{ $account }} = {{ $id }}
{{ $account }} = "{{ $id }}"
{{ end }}
}
}
2 changes: 1 addition & 1 deletion testdata/v2_full_yaml/.github/workflows/fogg_ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
- run: aws configure set aws_access_key_id ${{ secrets.IDACCT_AWS_ACCESS_KEY_ID }} --profile _idacct
- run: aws configure set aws_secret_access_key ${{ secrets.IDACCT_AWS_SECRET_ACCESS_KEY }} --profile _idacct
- run: aws --profile _idacct sts get-caller-identity
- run: aws configure set profile.profile.role_arn arn:aws:iam::456:role/foo
- run: aws configure set profile.profile.role_arn arn:aws:iam::00456:role/foo
- run: aws configure set profile.profile.source_profile _idacct
- run: aws --profile profile sts get-caller-identity
# we only run the following if there are changes in the terraform/* directory
Expand Down
4 changes: 2 additions & 2 deletions testdata/v2_full_yaml/fogg.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ accounts:
bar:
providers:
aws:
account_id: 456
account_id: 00456
additional_regions:
- us-east-1
- us-east-2
Expand Down Expand Up @@ -44,7 +44,7 @@ defaults:
project: proj
providers:
aws:
account_id: 456
account_id: 00456
profile: profile
region: us-west-2
version: 0.12.0
Expand Down
2 changes: 1 addition & 1 deletion testdata/v2_full_yaml/terraform/accounts/bar/Makefile

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions testdata/v2_full_yaml/terraform/accounts/bar/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions testdata/v2_full_yaml/terraform/accounts/foo/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testdata/v2_full_yaml/terraform/envs/prod/datadog/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testdata/v2_full_yaml/terraform/envs/prod/hero/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testdata/v2_full_yaml/terraform/envs/prod/okta/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testdata/v2_full_yaml/terraform/envs/prod/sentry/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testdata/v2_full_yaml/terraform/envs/prod/vpc/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testdata/v2_full_yaml/terraform/envs/staging/comp1/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testdata/v2_full_yaml/terraform/envs/staging/comp2/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions testdata/v2_full_yaml/terraform/envs/staging/vpc/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion testdata/v2_full_yaml/terraform/global/fogg.tf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d8f52bc

Please sign in to comment.