Hi,
I keep getting the error "Not able to find task-definition.json in your repository."
Any ideas?
This is my file structure, the task-definitions.json seems to be in the right directory:

This is my task-definitions.json:
{
"family": "ecs-cvs-behaviour-staging",
"containerDefinitions": [
{
"name": "cvs-behaviour-staging",
"image": "cvs-staging:$BITBUCKET_BUILD_NUMBER",
"portMappings": [
{
"containerPort": 80,
"hostPort": 80,
"protocol": "tcp"
}
],
"essential": true
}
],
"requiresCompatibilities": [
"EC2"
],
"memory": "128"
}
And this is my bitbucket-pipelines.yml:
image: python:3.8.12-alpine3.14
pipelines:
default:
- step:
name: Build Docker Container and Deploy to ECR
services:
- docker
script:
- docker build -t cvs-staging:latest .
- pipe: atlassian/aws-ecr-push-image:1.4.2
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
IMAGE_NAME: cvs-staging
TAGS: $BITBUCKET_BUILD_NUMBER
- step:
name: Deploy to ECS
script:
- pipe: atlassian/aws-ecs-deploy:1.6.0
variables:
AWS_ACCESS_KEY_ID: $AWS_ACCESS_KEY_ID
AWS_SECRET_ACCESS_KEY: $AWS_SECRET_ACCESS_KEY
AWS_DEFAULT_REGION: $AWS_DEFAULT_REGION
CLUSTER_NAME: 'cvs-staging'
SERVICE_NAME: 'cvs-staging-service'
TASK_DEFINITION: 'task-definition.json'