Having trouble with pipe cloudfront invalidation

Duy Nguyen December 25, 2024

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.
91

https://bitbucket.org/atlassian/aws-cloudfront-invalidate/src/master/

1 answer

0 votes
Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 27, 2024

Hi @Duy Nguyen . Thanks for your question.

Please, provide more details:

  • your bitbucket-pipelines.yml configuration file (do not expose any secrets)
  • your detailed log output from pipelines

Regards, Igor

Duy Nguyen December 29, 2024

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

```

Duy Nguyen December 29, 2024

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.

Igor Stoyanov
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
December 29, 2024

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 

 

Like Duy Nguyen likes this
Duy Nguyen December 30, 2024

Thanks for pointing that out Igor, silly me.

Like Igor Stoyanov likes this

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
AUG Leaders

Atlassian Community Events