File tree 2 files changed +6
-5
lines changed 2 files changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ data "aws_iam_policy_document" "oidc" {
16
16
condition {
17
17
test = " StringLike"
18
18
variable = " token.actions.githubusercontent.com:sub"
19
- values = [" repo:team-sufra/web:ref:refs/heads/master " ]
19
+ values = [" repo:${ var . repo_path } " ]
20
20
}
21
21
}
22
22
}
@@ -60,10 +60,6 @@ data "aws_iam_policy_document" "deploy_web" {
60
60
}
61
61
}
62
62
63
- data "aws_route53_zone" "sufra_co_uk_hosted_zone" {
64
- name = " sufra.co.uk"
65
- }
66
-
67
63
data "aws_iam_openid_connect_provider" "github" {
68
64
url = " https://token.actions.githubusercontent.com"
69
65
}
Original file line number Diff line number Diff line change @@ -40,4 +40,9 @@ variable "locations" {
40
40
variable "tags" {
41
41
type = map (string )
42
42
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"
43
48
}
You can’t perform that action at this time.
0 commit comments