Skip to content

Commit

Permalink
fix: tweak deployment approaches (#438)
Browse files Browse the repository at this point in the history
* fix: tweak deployment approaches to make this more stable.

* fix: amend readonly role to prevent sts assume failures in pipeline

* fix: resolve provider conflict

* fix: update provider

* fix: remove hard coded provider variables

* fix: typo

* fix: explicit provider version

* fix: provider upgrade

* fix: downgrade provider to resolve issues

* fix: amend provider

* fix: resolve provider checksum
  • Loading branch information
barkerl authored Nov 7, 2024
1 parent 1de9af3 commit 985aaae
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 35 deletions.
60 changes: 30 additions & 30 deletions infra/terraform/accounts/nonprod/.terraform.lock.hcl

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

9 changes: 6 additions & 3 deletions infra/terraform/accounts/nonprod/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,12 @@ module "account" {
],
)

github_oidc_readonly_subjects = [
for env in local.environments : "dvsa/vol-app:pull_request"
]
github_oidc_readonly_subjects = concat(
[
"dvsa/vol-app:ref:refs/heads/main",
"dvsa/vol-app:pull_request",
]
)

github_oidc_readonly_role_policies = merge(
{
Expand Down
2 changes: 1 addition & 1 deletion infra/terraform/accounts/nonprod/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
aws = {
source = "hashicorp/aws"
version = "~> 5.49.0"
version = ">= 5.49.0"
}
}

Expand Down
3 changes: 2 additions & 1 deletion infra/terraform/modules/service/ecs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -144,5 +144,6 @@ module "ecs_service" {

#Altered to false as applies are timing out due to health status not pulling through correctly
wait_for_steady_state = false
wait_until_stable = false
wait_until_stable = true
force_new_deployment = false
}

0 comments on commit 985aaae

Please sign in to comment.