Skip to content

Commit 01604a3

Browse files
Hardcode region
1 parent 50bebe6 commit 01604a3

File tree

3 files changed

+22
-3
lines changed

3 files changed

+22
-3
lines changed

.terraform.lock.hcl

Lines changed: 4 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

modules/scenarios/loom.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,8 +150,8 @@ module "cloudfront" {
150150
response_code = 404
151151
response_page_path = "/errors/404.html"
152152
}, {
153-
error_code = 404
154-
response_code = 404
153+
error_code = 403
154+
response_code = 403
155155
response_page_path = "/errors/403.html"
156156
}]
157157

terraform.tf

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
# This file contains resources that allow terraform running on GitHub Actions
22
# see https://docs.github.com/en/actions/deployment/security-hardening-your-deployments/configuring-openid-connect-in-amazon-web-services for details
33

4-
provider "aws" {}
4+
provider "aws" {
5+
region = "eu-west-2"
6+
}
57

68
# Disable this temporarily during bootstrapping and use `terraform init
79
# -migrate-state` to migrate the local state into S3 after all resources have
@@ -127,6 +129,19 @@ resource "aws_iam_role" "deploy_role" {
127129
"login.app.env0.com/:sub" = "auth0|691b8530eba074a8989d8726"
128130
}
129131
}
132+
},
133+
{
134+
Sid = "AllowSpacelift",
135+
Effect = "Allow",
136+
Principal = {
137+
AWS = "324880187172"
138+
},
139+
Action = ["sts:AssumeRole"],
140+
Condition = {
141+
StringLike = {
142+
"sts:ExternalId" = "overmind-demo@*"
143+
}
144+
}
130145
}
131146
]) : tolist([
132147
{

0 commit comments

Comments
 (0)