This action will:
- get cloudfront distribution configuration
- generate distribution configuration with new lambda version ARN
- update the cloudfront distribution
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: elseu/elsb-dbit-cloudfront-lambda-edge-update-action@v1
with:
distribution_id: <Cloudfront Distribution ID>
path_pattern: <Cloudfront Behavior Path pattern (if DefaultCacheBehaviour, set path_pattern to 'Default')>
lambda_association_event_type: <Lambda association Event type>
lambda_association_version_arn: <Lambda association version ARN>
cloudfront_invalidation_required: <Ask for Cloudfront invalidation (true/false)>
aws_region: <AWS Region to use> (not required)
aws_access_key: <AWS access key to use> (not required)
aws_secret_key: <AWS secret key to use> (not required)