Skip to content

Commit

Permalink
Merge pull request #111 from ASFHyP3/convert-json-to-yaml
Browse files Browse the repository at this point in the history
Upgrade to latest `cfn-lint`
  • Loading branch information
jtherrmann authored Jun 25, 2024
2 parents f6f22cc + d1896d9 commit f8a5457
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [0.5.4]
### Fixed
- Convert the `FilterPolicy` property of the `LandsatSubscription` CloudFormation resource from JSON to YAML, to allow upgrading to `cfn-lint` v1.3.4 (see <https://github.com/aws-cloudformation/cfn-lint/issues/3403>).

## [0.5.3]
### Fixed
Expand Down
11 changes: 6 additions & 5 deletions cloudformation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,11 +71,12 @@ Resources:
Protocol: sqs
Endpoint: !GetAtt Queue.Arn
FilterPolicyScope: MessageBody
FilterPolicy: |
{
"landsat_product_id": [{"suffix": "_T1"}, {"suffix": "_T2"}],
"s3_location": [{"prefix": "s3://usgs-landsat/collection02/level-1/standard/oli-tirs/"}]
}
FilterPolicy:
landsat_product_id:
- suffix: '_T1'
- suffix: '_T2'
s3_location:
- prefix: 's3://usgs-landsat/collection02/level-1/standard/oli-tirs/'

Lambda:
Type: AWS::Lambda::Function
Expand Down
2 changes: 1 addition & 1 deletion requirements-all.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-r requirements-its_live_monitoring.txt
-r requirements-status-messages.txt
cfn-lint==0.87.8
cfn-lint==1.3.4
ruff==0.4.10
pytest==8.2.2
responses==0.25.3

0 comments on commit f8a5457

Please sign in to comment.