Hi folks,
I'm using this for cloudfront invalidation but encountering this error. Does anyone have any ideas?
docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "python3": executable file not found in $PATH: unknown.
https://bitbucket.org/atlassian/aws-cloudfront-invalidate/src/master/
Hi @Duy Nguyen . Thanks for your question.
Please, provide more details:
Regards, Igor
Hi Igor,
Here's what you asked for
Pipeline config file. Please don't mind the validity of the file, I just remove the sensitive part.
```
image: node:20
definitions:
steps:
- step: &build
- step: &deploy
- step: &cloudfront-invalidations
name: Cloudfront invalidations
runs-on:
- self.hosted
- linux
oidc: true
script:
- pipe: atlassian/aws-cloudfront-invalidate:0.10.1
variables:
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
AWS_OIDC_ROLE_ARN: $AWS_ARN
DISTRIBUTION_ID: $DISTRIBUTION_ID
PATH: '/*'
pipelines:
branches:
main:
- step: *build
- step: *deploy
- step: *cloudfront-invalidations
```
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I can't send the entire log since the forum is giving me an error regarding html.
The error I shared on the post was the only error. The rest of the logs was about setting up docker container with some environment variables and docker pull logs.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Duy Nguyen .
From what i see, you use wrong configuration:
- pipe: atlassian/aws-cloudfront-invalidate:0.10.1
variables:
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
AWS_OIDC_ROLE_ARN: $AWS_ARN
DISTRIBUTION_ID: $DISTRIBUTION_ID
PATH: '/*'
You use PATH, but pipe expect PATHS
script: - pipe: atlassian/aws-cloudfront-invalidate:0.10.1 variables: DISTRIBUTION_ID: '123xyz' PATHS: '/index.html /home.html'
Regards, Igor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.