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

env needs to be deployed before svc can be deployed #108

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

davidhsingyuchen
Copy link

Error message if copilot env deploy --name test is not run before copilot svc deploy is run:

workshop:~/environment/ecsdemo-frontend (main) $ copilot env init --name test --profile default --default-config
✔ Wrote the manifest for environment test at copilot/environments/test/manifest.yml
- Update regional resources with stack set "ecsworkshop-infrastructure"  [succeeded]  [0.0s]
- Update regional resources with stack set "ecsworkshop-infrastructure"  [succeeded]          [127.4s]
  - Update resources in region "us-west-1"                               [create complete]    [124.9s]
    - ECR container image repository for "ecsdemo-frontend"              [create in progress]  [123.6s]
    - KMS key to encrypt pipeline artifacts between stages               [create complete]    [119.4s]
    - S3 Bucket to store local artifacts                                 [create in progress]  [100.4s]
✔ Proposing infrastructure changes for the ecsworkshop-test environment.
- Creating the infrastructure for the ecsworkshop-test environment.  [create complete]  [44.1s]
  - An IAM Role for AWS CloudFormation to manage resources           [create complete]  [20.0s]
  - An IAM Role to describe resources in your environment            [create complete]  [17.8s]
✔ Provisioned bootstrap resources for environment test in region us-west-1 under application ecsworkshop.
Recommended follow-up actions:
  - Update your manifest copilot/environments/test/manifest.yml to change the defaults.
  - Run `copilot env deploy --name test` to deploy your environment.
workshop:~/environment/ecsdemo-frontend (main) $ copilot svc deploy
Only found one service, defaulting to: ecsdemo-frontend
Only found one environment, defaulting to: test
✘ cannot deploy a service to an undeployed environment. Please run "copilot env deploy --name test" to deploy the environment first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant