Skip to content

Commit

Permalink
chore: tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
ashleyjtaylor committed Mar 10, 2024
1 parent cde5abb commit 98ec9fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion .github/workflows/infrastructure.yml
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ jobs:
if: ${{ steps.filter.outputs.images == 'true' }}
working-directory: ./infrastructure
run: |
aws sts get-caller-identity
aws ecr describe-repositories --repository-names $REPOSITORY || aws ecr create-repository --repository-name $REPOSITORY
docker build -t $REGISTRY/$REPOSITORY:latest -f ./src/images/Dockerfile.base .
Expand Down
2 changes: 1 addition & 1 deletion infrastructure/src/constructs/oidc-provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ export default class OIDCProvider extends Construct {
'ecr:BatchCheckLayerAvailability',
'ecr:PutImage'
],
resources: [`arn:aws:ecr:::repository/${project}-*`],
resources: [`arn:aws:ecr:${Aws.REGION}:${Aws.ACCOUNT_ID}:repository/${project}-*`],
effect: Effect.ALLOW
})
]
Expand Down

0 comments on commit 98ec9fd

Please sign in to comment.