Simple environment deploy fails with Template error: Unable to get mapping for EnvironmentMap::<env>::InstanceClass
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.
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?