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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root


1 badge earned


Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!


Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.


Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!


Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
Community Members
Community Events
Community Groups



I have a pipeline to ec2 and using aws ec2 codedeploy pipe and i have set all variables.Bur still I am getting error.

For reference check screenshot:Screenshot from 2022-06-27 02-57-06.pngScreenshot from 2022-06-27 02-58-08.png

2 answers

0 votes

@Naveen Chaudhary  hi . Thanks for your question.

You have problems with linting:
You have this:

- pipe: atlassian/aws-code-deploy:1.1.1
APPLICATION_NAME: 'my-application'

but should be this:

- pipe: atlassian/aws-code-deploy:1.1.1
APPLICATION_NAME: 'my-application'

Check this guide for more info.

Regards, Igor.

0 votes
Patrik S Atlassian Team Jun 28, 2022

Hello @Naveen Chaudhary ,

It seems like you pipe if failing in the validation of the APPLICATION_NAME variable, that is a required variable in aws-code-deploy pipe

Although from your screenshot you are already defining this variable, to make sure there's no typo in your bitbucket-pipelines.yml file, I would suggest copy/paste the variable from below, replacing it in your yml and try running again : 

APPLICATION_NAME: 'my-application'

If that still does not work, could you please share the full logs of the pipe run? I'm especially interested in the beginning of the pipe logs, where it describes all the variables passed from the build container to the pipe's container.

Also, could you please confirm if you have any environment variable at the workspace/repository/deployment level with the same name as APPLICATION_NAME ? 

Thank you, @Naveen Chaudhary 

Kind regards,

Patrik S

@Patrik SAs you have suggested i have copy and paste the APPLICATION_NAME variable,but still it is not working.

Please check logs below.


+ umask 000

+ GIT_LFS_SKIP_SMUDGE=1 retry 6 git clone --branch="master" --depth 50 https://x-token-auth:$$BITBUCKET_REPO_FULL_NAME.git $BUILD_DIR
Cloning into '/opt/atlassian/pipelines/agent/build'...

+ git reset --hard 2fc3c748e99b6075049a6feb3a713e476a17cb85
HEAD is now at 2fc3c74 edited online with Bitbucket

+ git config bitbucket-pipelines

+ git config

+ git config push.default current

+ git config http.${BITBUCKET_GIT_HTTP_ORIGIN}.proxy http://localhost:29418/

+ git remote set-url origin$BITBUCKET_REPO_FULL_NAME

+ git reflog expire --expire=all --all

+ echo ".bitbucket/pipelines/generated" >> .git/info/exclude

+ chmod 777 $BUILD_DIR

Images used:
build :
+ docker container run \
--volume=/opt/atlassian/pipelines/agent/build:/opt/atlassian/pipelines/agent/build \
--volume=/opt/atlassian/pipelines/agent/ssh:/opt/atlassian/pipelines/agent/ssh:ro \
--volume=/usr/local/bin/docker:/usr/local/bin/docker:ro \
--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes \
--volume=/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/aws-code-deploy:/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/aws-code-deploy \
--workdir=$(pwd) \
--label=org.bitbucket.pipelines.system=true \
--env=CI="$CI" \
--env=DOCKER_HOST="tcp://host.docker.internal:2375" \
--env=BITBUCKET_PIPE_SHARED_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes" \
--env=BITBUCKET_PIPE_STORAGE_DIR="/opt/atlassian/pipelines/agent/build/.bitbucket/pipelines/generated/pipeline/pipes/atlassian/aws-code-deploy" \
--add-host="host.docker.internal:$BITBUCKET_DOCKER_HOST_INTERNAL" \
Unable to find image 'bitbucketpipelines/aws-code-deploy:1.1.1' locally
1.1.1: Pulling from bitbucketpipelines/aws-code-deploy
7d63c13d9b9b: Pulling fs layer
6ad2a11ca37b: Pulling fs layer
e9edbe81a001: Pulling fs layer
36629b83aba2: Pulling fs layer
3baebd9b1d65: Pulling fs layer
c2702d8b887f: Pulling fs layer
2f30aab3c4d5: Pulling fs layer
ccf4689ddb89: Pulling fs layer
e2879c9c94a9: Pulling fs layer
c2702d8b887f: Waiting
36629b83aba2: Waiting
e2879c9c94a9: Waiting
3baebd9b1d65: Waiting
ccf4689ddb89: Waiting
6ad2a11ca37b: Verifying Checksum
6ad2a11ca37b: Download complete
e9edbe81a001: Verifying Checksum
e9edbe81a001: Download complete
36629b83aba2: Download complete
7d63c13d9b9b: Verifying Checksum
7d63c13d9b9b: Download complete
c2702d8b887f: Verifying Checksum
c2702d8b887f: Download complete
3baebd9b1d65: Verifying Checksum
3baebd9b1d65: Download complete
ccf4689ddb89: Download complete
2f30aab3c4d5: Verifying Checksum
2f30aab3c4d5: Download complete
e2879c9c94a9: Verifying Checksum
e2879c9c94a9: Download complete
7d63c13d9b9b: Pull complete
6ad2a11ca37b: Pull complete
e9edbe81a001: Pull complete
36629b83aba2: Pull complete
3baebd9b1d65: Pull complete
c2702d8b887f: Pull complete
2f30aab3c4d5: Pull complete
ccf4689ddb89: Pull complete
e2879c9c94a9: Pull complete
Digest: sha256:518d1c7aa618c5cfbc5174797580bb237d4c2965139878e46199f518779a1a93
Status: Downloaded newer image for bitbucketpipelines/aws-code-deploy:1.1.1
INFO: Using default authentication with AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY
✖ Validation error: APPLICATION_NAME variable is required.
Searching for files matching artifact pattern .bitbucket/pipelines/generated/pipeline/pipes/**

Searching for test report files in directories named [test-results, failsafe-reports, test-reports, TestResults, surefire-reports] down to a depth of 4
Finished scanning for test reports. Found 0 test report files.
Merged test suites, total number tests is 0, with 0 failures and 0 errors.

Suggest an answer

Log in or Sign up to answer

Atlassian Community Events