awslabs / awslabs/amazon-app-runner-deploy

Error: ConfigurationSource cannot be changed from REPOSITORY to API for CREATE_FAILED services.

Open
#47 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
60
Forks
34
PR merge metrics
No merged PRs in 30d

Description

My pipeline is this:

` name: Deploy to App Runner
on:
push:
branches: [main]

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }}
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
aws-region: ${{ secrets.AWS_REGION }}

- name: Deploy to App Runner
id: deploy-apprunner
uses: awslabs/amazon-app-runner-deploy@main
env:
SERVER_PORT: 80
SECRET_ENV: secret_env
with:
service: DEVOPS-NA-INFRA
source-connection-arn: ${{ secrets.AWS_CONNECTION_SOURCE_ARN }}
repo: https://github.com/${{ github.repository }}
branch: ${{ github.ref }}
runtime: NODEJS_16
build-command: npm install
start-command: npm start
port: 80
region: ${{ secrets.AWS_REGION }}
cpu : 1
memory : 2
copy-env-vars: |
SERVER_PORT
copy-secret-env-vars: |
SECRET_ENV

- name: App Runner URL
run: echo "App runner URL ${{ steps.deploy-apprunner.outputs.service-url }}" `

I used this blog post as an example: https://aws.amazon.com/pt/blogs/containers/deploy-applications-in-aws-app-runner-with-github-actions/ and it's not working.
My service user has maximum permission to deploy to App Runner

Contributor guide

Open the contributing guide

Research direction

The issue names no repository files or tests; start with the workflow's “Deploy to App Runner” step and the AWS ConfigurationSource error. Reproduce the deployment with the shown inputs, then identify the configuration mismatch that prevents CREATE_FAILED services from deploying; done means the workflow completes successfully for the reported service.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws, github-actions, node.js, typescript
Domain
ci-cd, cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.