Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nilsbunger opened this issue Aug 28, 2024 · 1 comment
Labels
type/bug Issues that are bugs.

Comments

@nilsbunger
Copy link

nilsbunger commented Aug 28, 2024

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.

@nilsbunger nilsbunger added the type/bug Issues that are bugs. label Aug 28, 2024
@nilsbunger nilsbunger changed the title [Bug]: TITLE Simple environment deploy fails with Template error: Unable to get mapping for EnvironmentMap::<env>:::InstanceClass Aug 28, 2024
@nilsbunger nilsbunger changed the title Simple environment deploy fails with Template error: Unable to get mapping for EnvironmentMap::<env>:::InstanceClass Simple environment deploy fails with Template error: Unable to get mapping for EnvironmentMap::<env>::InstanceClass Aug 28, 2024
@iamhopaul123
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/bug Issues that are bugs.
Projects
None yet
Development

No branches or pull requests

2 participants