generated from ministryofjustice/template-repository
-
Notifications
You must be signed in to change notification settings - Fork 290
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #8585 from ministryofjustice/feature/update-delega…
…te-access Assume role in MP account to resolve secrets access issue in Sprinkler account workflow
- Loading branch information
Showing
13 changed files
with
69 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# Get secret by name for environment management | ||
data "aws_secretsmanager_secret" "environment_management" { | ||
provider = aws.modernisation-platform | ||
provider = aws.modernisation-secrets-read | ||
name = "environment_management" | ||
} | ||
|
||
# Get latest secret value with ID from above. This secret stores account IDs for the Modernisation Platform sub-accounts | ||
data "aws_secretsmanager_secret_version" "environment_management" { | ||
provider = aws.modernisation-platform | ||
provider = aws.modernisation-secrets-read | ||
secret_id = data.aws_secretsmanager_secret.environment_management.id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Get secret by name for environment management | ||
data "aws_secretsmanager_secret" "environment_management" { | ||
name = "environment_management" | ||
provider = aws.modernisation-secrets-read | ||
name = "environment_management" | ||
} | ||
|
||
# Get latest secret value with ID from above. This secret stores account IDs for the Modernisation Platform sub-accounts | ||
data "aws_secretsmanager_secret_version" "environment_management" { | ||
provider = aws.modernisation-secrets-read | ||
secret_id = data.aws_secretsmanager_secret.environment_management.id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,9 @@ | ||
data "aws_s3_bucket" "mod_platform_artefact" { | ||
provider = aws.core-shared-services | ||
bucket = "mod-platform-image-artefact-bucket20230203091453221500000001" | ||
} | ||
|
||
# To Get Modernisation Platform Account Number | ||
data "aws_ssm_parameter" "modernisation_platform_account_id" { | ||
name = "modernisation_platform_account_id" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
# Get secret by name for environment management | ||
data "aws_secretsmanager_secret" "environment_management" { | ||
name = "environment_management" | ||
provider = aws.modernisation-secrets-read | ||
name = "environment_management" | ||
} | ||
|
||
# Get latest secret value with ID from above. This secret stores account IDs for the Modernisation Platform sub-accounts | ||
data "aws_secretsmanager_secret_version" "environment_management" { | ||
provider = aws.modernisation-secrets-read | ||
secret_id = data.aws_secretsmanager_secret.environment_management.id | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters