diff --git a/Makefile b/Makefile index dcdec0962..d18fc65aa 100644 --- a/Makefile +++ b/Makefile @@ -13,6 +13,7 @@ test: lint: # Linter performs static analysis to catch latent bugs find src/ -iname "*.py" -not -path "src/.aws-sam/*" | xargs pylint --rcfile .pylintrc + find src -iname "*.yml" -o -iname "*.yaml" -not -path "src/.aws-sam/*" | xargs yamllint -c .yamllint build: sam build -u diff --git a/requirements.txt b/requirements.txt index 1364abc90..4a0fcd1f6 100644 --- a/requirements.txt +++ b/requirements.txt @@ -8,3 +8,4 @@ pytest~=6.2.5 pyyaml>=5.4.1 schema~=0.7.5 tox==3.24.4 +yamllint~=1.26.3 \ No newline at end of file diff --git a/src/lambda_codebase/initial_commit/bootstrap_repository/adf-bootstrap/deployment/global.yml b/src/lambda_codebase/initial_commit/bootstrap_repository/adf-bootstrap/deployment/global.yml index 946a6fc59..59e240bed 100644 --- a/src/lambda_codebase/initial_commit/bootstrap_repository/adf-bootstrap/deployment/global.yml +++ b/src/lambda_codebase/initial_commit/bootstrap_repository/adf-bootstrap/deployment/global.yml @@ -1271,7 +1271,7 @@ Resources: - aws.codecommit detail-type: - "CodeCommit Repository State Change" - resources: + resources: - !Sub "arn:${AWS::Partition}:codecommit:${AWS::Region}:${AWS::AccountId}:${CodeCommitRepository.Name}" detail: event: