@kavithasureshkumar2002 Hi, I am using a docker image to deploy in ecs successfully pushed image to ecr while deploying i am facing a error imagedefinition.json not found.
Hey, i went through the same problem! You have to update the location in your buildspec code : artifacts: files: - /var/www/html/index.html base-directory: /var/www/html/ discard-paths: yes # Specify the name of your artifact name: MyArtifactName location: devopsnakulproject , Here the location should be your bucket name! I hope this helps.
Hi Need your assistance in learning aws devops
How can I help you?
@kavithasureshkumar2002
Hi, I am using a docker image to deploy in ecs successfully pushed image to ecr
while deploying i am facing a error imagedefinition.json not found.
Hi hope you are well i am doing all the stuff same as you are doing but my artifacts is not stored in s3
Hi, Check whether the user has necessary permissions to write to S3 bucket
@@kavithasureshkumar2002 while i was creating a role and then i associate s3FullAccess to it but it doesnot work
Can you share buildspec.yaml file
@@kavithasureshkumar2002 thanks for your reply i found the error.I refactor the buildspec.yaml file
Hey, i went through the same problem! You have to update the location in your buildspec code :
artifacts:
files:
- /var/www/html/index.html
base-directory: /var/www/html/
discard-paths: yes
# Specify the name of your artifact
name: MyArtifactName
location: devopsnakulproject , Here the location should be your bucket name! I hope this helps.