Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

atlassian/aws-elasticbeanstalk-deploy:1.0.1 S3_KEY is "None"

Ian Anderson August 4, 2021

With the changeover to Python for the aws-elasticbeanstalk-deploy pipe, the "S3_KEY" is set to 

'{os.getenv("APPLICATION_NAME")}/{os.getenv("VERSION_LABEL")}' by default. However, "VERSION_LABEL" is not a required field, and as such is set independently to a logical value if not provided in the configuration. However, when setting "S3_KEY" this is not taken into account. The current default will make it so all versions are uploaded to S3 with "APPLICATION_NAME"/"None. this means that the zip files for all versions collide with the name "None" in S3,. 

 

Either the default for S3_KEY should be set to use the same logic as the VERSION_LABEL, VERSION_LABEL should become required, or another reasonable default should be set that gives a valid, different name for the uploaded zip file for each deploy.

2 answers

1 accepted

0 votes
Answer accepted
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 5, 2021

@Ian Anderson could you please share the part of pipeline, so we can see the precise pipeline configuration and it will help us to reproduce it?

 

Regards, Galyna

Ian Anderson August 6, 2021
 - step: &deploy 
name: Deploy
deployment: test
script:
- pipe: atlassian/aws-elasticbeanstalk-deploy:1.0.1
variables:
APPLICATION_NAME: $APPLICATION_NAME
ENVIRONMENT_NAME: $APPLICATION_ENVIRONMENT
ZIP_FILE: "composer_build.zip"
S3_BUCKET: $S3_BUCKET
Halyna Berezovska
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 23, 2021

@Ian Anderson please, try our newest pipe

 atlassian/aws-elasticbeanstalk-deploy:1.0.2

Looking forward to seeing your feedback

Regards, Galyna

Ian Anderson August 23, 2021

@Halyna Berezovska - It is working well from my end. The initial build I tried has been completely successful. 

 

thank you!

0 votes
Oleksandr Kyrdan
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
August 4, 2021

Hi @Ian Anderson

Thank you for your feedback!

We'll fix this behaviour and notify you.

 

Best regards,
Oleksandr Kyrdan

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events