File tree Expand file tree Collapse file tree 4 files changed +6
-2
lines changed
tofu/modules/system/templates Expand file tree Collapse file tree 4 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 24
24
run : tofu version
25
25
- name : Set optional variables
26
26
shell : bash
27
+ env :
28
+ TF_VAR_REGION : ${{ env.AWS_REGION }}
27
29
# For any of the defined variables that have a value set into TF_VAR_*
28
30
# (all uppercase), we set the corresponding TF_VAR_* (lowercase) variable
29
31
# that OpenTofu expects.
34
36
"database_skip_final_snapshot" "deletion_protection"
35
37
"deployment_environments" "environment" "export_expiration"
36
38
"image_tags_mutable" "key_recovery_period" "log_level" "program"
37
- "project" "repository"
39
+ "project" "region" " repository"
38
40
)
39
41
for var in ${variables[@]}; do
40
42
name="TF_VAR_$(echo $var | tr '[:lower:]' '[:upper:]')"
Original file line number Diff line number Diff line change 66
66
needs : plan
67
67
environment : ${{ inputs.environment || 'development' }}
68
68
env :
69
+ AWS_REGION : ${{ secrets.AWS_REGION }}
69
70
TF_VAR_image_tag : ${{ inputs.image_tag || github.sha }}
70
71
# Set required variables.
71
72
TF_VAR_repo_oidc_arn : ${{ secrets.TF_VAR_REPO_OIDC_ARN }}
Original file line number Diff line number Diff line change 26
26
runs-on : ubuntu-latest
27
27
environment : ${{ inputs.environment }}
28
28
env :
29
+ AWS_REGION : ${{ secrets.AWS_REGION }}
29
30
# Set required variables.
30
31
TF_VAR_repo_oidc_arn : ${{ secrets.TF_VAR_REPO_OIDC_ARN }}
31
32
TF_VAR_vpc_cidr : ${{ secrets.TF_VAR_VPC_CIDR }}
Original file line number Diff line number Diff line change @@ -12,4 +12,4 @@ Statement:
12
12
Action:
13
13
- s3: PutObject
14
14
Resource:
15
- - " ${ bucket_arn } : *"
15
+ - " ${ bucket_arn } / *"
You can’t perform that action at this time.
0 commit comments