Skip to content

Commit

Permalink
Merge branch 'main' into bump-example-version
Browse files Browse the repository at this point in the history
  • Loading branch information
jakemulley authored Oct 31, 2023
2 parents 5374669 + cdea41e commit 1f4b010
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: terraform-docs/[email protected]
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/push-terraform-module-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
push-terraform-module-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ministryofjustice/cloud-platform-environments/cmd/push-terraform-module-version@main
env:
# see https://github.com/ministryofjustice/cloud-platform-go-get-module/
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
name: Run Terratest Unit Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: hashicorp/setup-terraform@v2
with:
terraform_version: 1.2.5
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ No modules.

| Name | Description |
|------|-------------|
| <a name="output_irsa_policy_arn"></a> [irsa\_policy\_arn](#output\_irsa\_policy\_arn) | n/a |
| <a name="output_irsa_policy_arn"></a> [irsa\_policy\_arn](#output\_irsa\_policy\_arn) | IAM policy ARN for access to the container repository |
| <a name="output_repo_arn"></a> [repo\_arn](#output\_repo\_arn) | ECR repository ARN |
| <a name="output_repo_url"></a> [repo\_url](#output\_repo\_url) | ECR repository URL |
<!-- END_TF_DOCS -->
Expand Down
4 changes: 2 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -109,14 +109,14 @@ data "aws_iam_policy_document" "irsa" {
version = "2012-10-17"

statement {
sid = "AllowLogin"
sid = "AllowLoginFor${random_id.oidc.hex}"
effect = "Allow"
actions = ["ecr:GetAuthorizationToken"]
resources = ["*"]
}

statement {
sid = "AllowReadOnly"
sid = "AllowReadOnlyFor${random_id.oidc.hex}"
effect = "Allow"
actions = [
# General
Expand Down
3 changes: 2 additions & 1 deletion outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ output "repo_url" {
}

output "irsa_policy_arn" {
value = aws_iam_policy.irsa.arn
description = "IAM policy ARN for access to the container repository"
value = aws_iam_policy.irsa.arn
}

0 comments on commit 1f4b010

Please sign in to comment.