Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Cole Crawford
    @ColeDCrawford
    Having an issue with exec. I added a new dev environment, and it doesn't seem to want to let me exec. Production environment (same manifest, so exec should also be true here) works fine.
    ➜  βœ— copilot svc exec
    Service: webapp
    Execute `/bin/sh` in container webapp in task a5e21e33b619445d8fcf17601e14d1bd.
    ✘ Failed to execute command /bin/sh. Is `exec: true` set in your manifest?
    ✘ execute command /bin/sh in container webapp: execute command: TargetNotConnectedException: The execute command failed due to an internal error. Try again later.
    16 replies
    errrken
    @errrken
    Hi there! Do you have any estimate when aws/copilot-cli#2694 might be released?
    3 replies
    Mike Nitchie
    @mnitchie
    Hello! Apologies if this has been asked and answered - I've combed through aws/copilot-cli#1188 but it doesn't quite answer my question, I don't think. If my example.com domain and its DNS entries are not managed by Route53, can I still host things at something.example.com using copilot? Moving the example.com domain to Route53 isn't practical, though I can delegate subdomains to Route53 no problem.
    7 replies
    cristobalmackenzie
    @cristobalmackenzie
    Hi everyone ! What's the correct way to trigger a redeployment in some services after updating a secret's value? The task definition should stay exactly the same, but I want the deployment so run again to it grabs the new value for the secret.
    2 replies
    Efe Karakus
    @efekarakus

    Hi copilots! πŸ‘©β€βœˆοΈπŸ‘¨β€βœˆοΈ

    v1.16 is out and it's a big release: https://github.com/aws/copilot-cli/releases/tag/v1.16.0 ! πŸ₯³ πŸ₯³

    Some highlights:

    • Support multiple pipelines in a git repository (#3231)
    • Add support for SNS subscription filter policies (#3338)
    • Additional info in app show and env show (#3379) and more!

    We're also going to post short blogs for each releases to illustrate how to use the feature, here is the first one: https://aws.github.io/copilot-cli/blogs/release-v116/ πŸ‘€

    To update:

    brew install aws/tap/copilot-cli
    6 replies
    Felix Rodriguez
    @feelobot
    I am getting a stack does not exist error on service deploy even after rebuilding app and env from scratch
    11 replies
    has anyone seen something like that before?
    the service was running fine a few days ago and i just wanted to update some of the autoscaling bits
    Chris Gurba
    @cmgurba
    Hi all. Are we able to use cloudformation intrinsic functions (such as fn::sub) within the manifest.yml of a service to compose environment variables/secrets? Context: I have a key:value secret in secretsmanager holding database credentials, but my app logic + libraries prefers to have this declared as a full DATABASE_URL. If i could compose it in the manifest, it would be simple to have for my apps tasks. Alternatively I could maybe dual-store the database credentials in different formats, but trying to avoid that.
    11 replies
    Timm Wimmers
    @adminradio

    Hey copilots,
    if I run copilot env show the output shows something like:

    Environment: the_env_name
    About
    
      Name        the_env_name
      Production  false
      Region      eu-central-1
      Account ID  1234567890

    How do I set the Production tag or label to production afterwards (the env is already running an application)? And what is this label used for anyway?

    Thank you.

    3 replies
    eadams162
    @eadams162

    Hey everyone,
    Running into an issue that’s only present on a VM I’m running copilot on. Deployment works fine on my local machine.

    Getting this error every deployment:
    Latest failure event - (service test) (port 80) is unhealthy in (target-group [target-group-arn]) due to (reason Health checks failed with these codes: [403]).

    I know this is not IAM user related because I can run this AWS CLI command fine in the VM - aws elbv2 describe-target-health --target-group-arn [target-group-arn] – this returns that port 80 is healthy.

    Not sure what information could help here as I’ve been dealing with this for the past week, no clue what is causing the 403.

    3 replies
    Chris Gurba
    @cmgurba
    can we pass secrets to individual environment stages of our pipeline? Context: i'm trying to make a secretsmanager secret available to my test_commands container
    4 replies
    Janice Huang
    @huanjani
    Hi all!
    AWS Copilot v1.17.0 is now released! https://github.com/aws/copilot-cli/releases/tag/v1.17.0 πŸŽ‰πŸš€
    Jamin Collins
    @jamin-aws-ospo

    I'm attempting to use this addon:

    But am being met with the following error on copilot deploy:

      The following resource(s) failed to create: [AddonsStack].
      - An Addons CloudFormation Stack for your additional AWS resources
        The following resource(s) failed to create: [UserPoolDomain, MyUserPoo
        lPolicy]. Rollback requested by user.

    Is there any way to get more details around the failure?

    4 replies
    Jamin Collins
    @jamin-aws-ospo
    I have copilot doing almost everything I want it to do. The final bit is to integrate Cognito + OIDC. I already have most of the Cognito work being done through an addon. My question is how would I then integrate the created Cognito bits into the Load Balancer that copilot creates.
    6 replies
    Chris Gurba
    @cmgurba
    double checking on a bit of documentation: for test_commands it says: If all the tests succeed, your change is promoted to the next stage.. Does this also mean that if tests fail, your current stage will be rolled back? seems like that would make sense considering you've just determined it's unhealthy, but hadn't officially found an answer yet.
    4 replies
    eadams162
    @eadams162
    Hey guys,
    Is there any option to disable cache for copilot deployment? Something similar to docker build --no-cache
    2 replies
    Jamin Collins
    @jamin-aws-ospo
    Is there a way on the copilot init to avoid the prompt/question about deployment without doing a deployment? I know I can add --deploy, but would prefer to not do a deployment and not be prompted as I have additional bits to add before doing the first deployment (addons, etc).
    2 replies
    Ronique Ricketts
    @RoniqueRicketts
    I have a question that's not really related to the cli (I love it btw). Do you guys have a like a jobs platform that's unique to this channel.
    4 replies
    Jamin Collins
    @jamin-aws-ospo
    This message was deleted
    Jake Wright
    @jakequalia
    Is there a way to force a rollback if a failure occurs in the test_commands of the pipeline.yml?
    5 replies
    Chris Gurba
    @cmgurba
    with 1.17 pipeline generation, i don't see the docker build block that i used to see in buildspec.yml files - is this encapsulated in something else now? or maybe my commands are off? :think:
    2 replies
    Tony
    @antoniodeperio_twitter
    Hi, just needed some help here. I'm using Copilot to start a backend service, and I'm struggling to know what to specify in the manifest file for the health check? In the docs (https://aws.github.io/copilot-cli/docs/manifest/backend-service/) there doesn't seem to be a place to add a path. But it does have a place for a command with an example: healthcheck: command: ["CMD-SHELL", "curl -f http://localhost:8080 || exit 1"] interval: 10s retries: 2 timeout: 5s start_period: 0s
    I have a /_healthcheck endpoint set up in my application.
    Any idea what I should be adding here to the command: property to call this endpoint?
    1 reply
    pg332
    @pg332:matrix.org
    [m]
    Hi, just had a question. I'm trying to add a postgres database to app. When doing copilot storage init you can specify which service to add the DB to via the --workload flag, but how do I make the DB accessible to all services in my app?
    I also see some code samples like this one where the postgres database is added as a backend service rather than doing copilot storage init. I'm wondering if this is a better way to do it if I need it accessible from more than one service?
    2 replies
    Jamin Collins
    @jamin-aws-ospo
    is there an existing way to adjust (add/change) permissions to the IAM roles that copilot creates?
    25 replies
    Raxit Majithiya
    @raxityo
    Hi, is there a way to set Git SHA as an environment variable through the Manifest?
    5 replies
    Ronique Ricketts
    @RoniqueRicketts
    Will copilot ever accept docker compose
    3 replies
    Joshua Kleiner
    @surrealchemist
    I am migrating an existing build plan to co-pilot and currently it uses .env for some variables. I saw there is a setting env_file but then I suppose I have to assign those to container environment variables or secrets? Is there an example somewhere using a .env file I can look at?
    5 replies
    Wanxian Yang
    @Lou1415926
    Hello folks!
    We have created a design proposal on GitHub to :point_right: aws/copilot-cli#3522 :point_left:. This feature will bring to your environments all the benefits of infrastructure-as-code, and will also allow Copilot to surface more environment configurations over time. We are super excited about this feature - please let us know if you have any feedback on the design!
    Urvish Patel
    @urpatel86
    Hi,
    6 replies
    Apologies, If this is asked and answered. I want to add my existing domain to copilot load balanced service. I don't want to transfer my domain to Route 53. Is there a way to do that?
    Gautam
    @gautam-nutalapati

    Hey Copilot!
    We are using copilot to deploy our stack containing about 30 microservices and 5 CRONs. After using it for over an year, we are hitting a few issues which I summarized below. We are considering EKS to deploy our services instead. A hybrid approach, where ECS tasks are disabled, services are deployed to EKS while reusing copilot's add-ons infrastructure is being researched by us.
    points that make us move towards EKS :

    • ability to use burstable instances in EKS
    • canary deployment is possible in EKS but not with current copilot setup
    • faster deployment times, and rollbacks flexibility in EKS
    • better scaling options in EKS
    • Overall, EKS costs us less compared to fargate

    What are your thoughts on supporting EKS?
    Do you consider this to be a valid design that may be supported in future?

    11 replies
    Ronique Ricketts
    @RoniqueRicketts
    so currently I have 1 service that's a frontend app but it need redis access whats best way to add this? Would I have to create it as a sidecar and use redis image as the source?
    4 replies
    genbit
    @genbit
    Hi all pilots :) I'm curious to learn how you've discovered Copilot and what your previous experience was? If you mind sharing feedback in replies, I would appreciate it! You can also DM or email me serggen@amazon.com
    2 replies
    Darshan Adhikari
    @99darshan_twitter

    Hello :wave: ,
    I am trying to setup a CI/CD pipeline for a Rails web app using AWS copilot. I'd appreciate your help in figuring out the best way to run database migrations.

    I've read through aws/copilot-cli#2992 which suggests to use test_command as a workaround. However, it looks like test_command would run only after the service has been deployed. I'd prefer to run the migrations first and deploy the service only if the migration succeed.

    As an alternate approach, I was looking into using Github Action instead of Code Pipeline. I was thinking of running the migration as one-off task using the task run and then running svc deploy only if the migration task succeed. However, I couldn't figure out a way to know if the migration task succeeded or resulted in an error. I could see the logs with the --follow flag, but not sure how I could use those logs to automatically stop the Github Action workflow if there are any errors.

    1 reply
    Ronique Ricketts
    @RoniqueRicketts
    I need to understand something. When I add a sidecar to a Service is it independent of the service? Eg. If I add nginx as a sidecar and I have 2 API Services does that mean I will have 2 independent nginx or will both API Service connect to the same nginx sidecar?
    3 replies
    Cristian Hernandez
    @clystian

    Hello guys, anyone can help me?
    I'm trying deploy a copilot demo from amazon docs with this URL https://docs.aws.amazon.com/es_es/AmazonECS/latest/developerguide/getting-started-aws-copilot-cli.html
    is a simple docketfile

    FROM nginx
    COPY index.html /usr/share/nginx/html

    I run copilot initand I said yes to deploy but that failed

    βœ” Created ECR repositories for service api.
    
    All right, you're all set for local development.
    Deploy: Yes
    
    ✘ Failed to create the infrastructure for the test environment.
    - Virtual private cloud on 2 availability zones to hold your services     [Complete]
    - Virtual private cloud on 2 availability zones to hold your services     [Complete]
      - Internet gateway to connect the network to the internet               [Failed]
      Resource creation cancelled                                                      ]
      - Public subnets for internet facing services                           [Complete]
      - Private subnets for services that can't be reached from the internet  [Complete]
      - Routing tables for services to talk with each other                   [Complete]
    - ECS Cluster to hold your services                                       [Complete]
    - Application load balancer to distribute traffic                         [Failed]
      Resource creation cancelled
    ✘ wait until stack demo-test create is complete: ResourceNotReady: failed waiting for successful resource state
    6 replies
    Sean Quinn
    @seanquinn
    I have basically the same docker image with differing commands to execute. This can achieve this nicely with docker-compose but wondering is there a way to override the command per image in Copilot?
    2 replies
    Janice Huang
    @huanjani
    Hi all!
    AWS Copilot v1.18.0 is now released! https://github.com/aws/copilot-cli/releases/tag/v1.18.0 πŸŽ‰πŸš€
    See more about the released features and fixes here: https://aws.github.io/copilot-cli/blogs/release-v118/
    Ronique Ricketts
    @RoniqueRicketts
    Hey guys idk if this is a group that supports this but, for those who has their own startups, how do you find your clients? I appreciate your help in advance. For the group moderators, please let me know if this post is within the group guidelines?
    2 replies
    tegryan
    @tegryan:matrix.org
    [m]
    Hi Copilot friends! What an awesome tool. I may have missed it, but is it on the roadmap to include a way to package and deploy lambda functions? The best method I can find currently is to run cloudformation package prior to running anything in Copilot, but that is not as awesome as everything else in Copilot
    10 replies
    tegryan
    @tegryan:matrix.org
    [m]
    thanks so much! can't say it enough - Copilot is a really awesome product. Very well thought out, thanks for writing this!
    1 reply
    errrken
    @errrken
    Hi there. I am trying to set up a service with Copilot. It is actually reachable by the domain name until it gets killed because the target group thinks it is unhealthy. Comparing the target group settings to our current Fargate setup (not using Copilot) the health check settings seems identical. It just says requests timed out. Not really sure how to continue. I am using 1.18 with an imported certificate from ACM
    8 replies
    Cole Crawford
    @ColeDCrawford
    Trying to deploy and running into some permissions issues:
    ➜  mapping-color-in-history git:(feature/manifest-creator) βœ— copilot svc deploy --env dev --name webapp
    ✘ Failed to upgrade environment dev's template to version v1.9.0.
    ✘ execute "env upgrade --app mcih --name dev": upgrade environment dev from version v1.7.0 to version v1.9.0: upload manual/templates/mcih-dev/4975ac48f4d5a06ab41982b884e5f71e90a8abcf6681c78e2b16e81f2e4077d2.yml to bucket stackset-mcih-infrastruc-pipelinebuiltartifactbuc-1lyct64kwvokq: AccessDenied: Access Denied
            status code: 403, request id: VCBW761675S9QF4C, host id: G21HOtXX7ILUEA3OgaPz3IT7my7iZlHx0/Kx9QNdjK3HGw/ACzNH6pf1/NZs0ccJ3aOUwpLx92s=
    14 replies
    Kevin Chin
    @chinkevin25
    Hi! I'm trying to use copilot to set up some API secrets. I'm noticing in the docs that each secret requires two tags, an environment and an application. I have an API key that I'm trying to use across all environments, is there a way to set a secret for every environment?
    1 reply
    Efe Karakus
    @efekarakus

    Hi folks! We just released a patch version v1.18.1: https://github.com/aws/copilot-cli/releases/tag/v1.18.1

    If you ran into the following error with v1.18: upgrade environment preview from version v1.8.0 to version v1.9.0 this patch release should hopefully fix it! Sorry for any inconvenience πŸ™‡β€β™‚οΈ

    errrken
    @errrken
    Hi! Receiving this when trying to deploy a service: ResourceInitializationError: unable to pull secrets or registry auth: execution resource retrieval failed: unable to retrieve secrets from ssm: service call has been retried 1 time(s): AccessDeniedException: User: arn:aws:sts::1111:assumed-role...
    2 replies
    Gerard Garcia
    @GerardGarcia_gitlab

    Hi! I'm getting this error when deploying: deploy service ... to environment stage: deploy service: stack ... is currently being updated and cannot be deployed to: Resource handler returned message: "Error occurred during operation 'ECS Deployment Circuit Breaker was triggered'." (RequestToken: ..., HandlerErrorCode: GeneralServiceException). Right now, the service is properly running and is not rolling back.

    The latest failed deployment was 4 days ago, which is when it failed. That time the pipeline timed out while doing the rollback. Is it possible that we need to manually clean up something to be able to deploy the service again?

    6 replies
    errrken
    @errrken
    Hmm, I am receiving describe secret github-token-xxx: describe secret github-token-xxxand a 400 when trying to run pipeline delete. Don't have such a secret either, any idea what is happening?
    11 replies