aws / copilot-cli

The AWS Copilot CLI is a tool for developers to build, release and operate production ready containerized applications on AWS App Runner or Amazon ECS on AWS Fargate.
https://aws.github.io/copilot-cli/
Apache License 2.0
3.53k stars 417 forks source link

Simple environment deploy fails with Template error: Unable to get mapping for EnvironmentMap::<env>::InstanceClass #5924

Open nilsbunger opened 2 months ago

nilsbunger commented 2 months ago

Description:

a very basic environment creation is failing:

copilot env init --name test-env2 --default-config
copilot env deploy --name test-env2

Details:

I'm on AWS copilot v1.34.0, on an M1 Mac, deploying to US-West-2

Observed result:

I get the following error during copilot env deploy --name test-env2:

deploy environment test-env2: wait for creation of change set copilot-9f3a5b0e-fafa-4465-ba19-2022735b687d for stack tbp-test-env2: 

ResourceNotReady: failed waiting for successful resource state: 

Template error: Unable to get mapping for EnvironmentMap::test-env2::InstanceClass

Expected result:

I expect the environment to deploy!

Debugging:

I've tried creating a new directory with a brand new copilot application. In that case, I can create and deploy that simple environment just fine. Something must be wrong with my existing copilot application but I can't figure out what.

iamhopaul123 commented 2 months ago

Hello @nilsbunger.

Template error: Unable to get mapping for EnvironmentMap::test-env2::InstanceClass

I don't think i've seen this error before honestly. Does it work if you create a new environment and deploy in the existing app? Do you have anything in prod for your existing application?