cd src/public-ecr
# Create the .env file from the sample
cp .apprunner.env.example .apprunner.env
Update the values here to fit your requirements
aws_region=ap-northeast-1
ecr_image="public.ecr.aws/aws-containers/hello-app-runner:latest"
aws_region
: the region to run the stack, default to Tokyo (ap-northeast-1
)ecr_image
: the container image from the public ECR repository that will be run in AppRunnerRun the script to create the AppRunner service with Terraform
./run.sh apply
Possible output:
...
Apply complete! Resources: 1 added, 0 changed, 0 destroyed.
Outputs:
app_url = "8h5q2y87mf.ap-northeast-1.awsapprunner.com"
We can see the service running by visit output app_url
: https://8h5q2y87mf.ap-northeast-1.awsapprunner.com
Run the script to destroy the deployed stack.
./run.sh destroy