Skip to content

Commit 13256df

Browse files
committed
Bug fix
1 parent 3aca634 commit 13256df

File tree

2 files changed

+6
-5
lines changed

2 files changed

+6
-5
lines changed

static-site/data.tf

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ data "aws_iam_policy_document" "oidc" {
1616
condition {
1717
test = "StringLike"
1818
variable = "token.actions.githubusercontent.com:sub"
19-
values = ["repo:team-sufra/web:ref:refs/heads/master"]
19+
values = ["repo:${var.repo_path}"]
2020
}
2121
}
2222
}
@@ -60,10 +60,6 @@ data "aws_iam_policy_document" "deploy_web" {
6060
}
6161
}
6262

63-
data "aws_route53_zone" "sufra_co_uk_hosted_zone" {
64-
name = "sufra.co.uk"
65-
}
66-
6763
data "aws_iam_openid_connect_provider" "github" {
6864
url = "https://token.actions.githubusercontent.com"
6965
}

static-site/variables.tf

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,9 @@ variable "locations" {
4040
variable "tags" {
4141
type = map(string)
4242
description = "The tags to apply to all resources created"
43+
}
44+
45+
variable "repo_path" {
46+
type = string
47+
description = "The repo path for the project"
4348
}

0 commit comments

Comments
 (0)