Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Camilo Santana
    @camilosantana
    This message was deleted
    Camilo Santana
    @camilosantana
    This message was deleted
    19 replies
    Camilo Santana
    @camilosantana

    default buildspec.yml ... pipelines enabled. when code-build is triggered and the amazon container runs, it doesn't find ruby

    i found the aws-codebuild-docker-images repo and built the image locally

    aws-codebuild-docker-images/al2/x86_64/standard/3.0 % docker build -t aws/codebuild/amazonlinux2-x86_64-standard:3.0 .

    from my local image, ruby runs as expected. from the same container in aws code-build, i get the following when running anything ruby-related:

    [Container] 2021/08/21 06:56:48 Running command which ruby
    /root/.rbenv/shims/ruby
    
    [Container] 2021/08/21 06:56:49 Running command /root/.rbenv/shims/ruby --version
    rbenv: version `ruby-2.7.1' is not installed (set by /codebuild/output/src210800193/src/.ruby-version)
    16 replies
    Grant Moore
    @chinchalinchin
    So, how exactly does HOST.COPILOT_SERVICE_DISCOVERY_ENDPOINT URI resolve to the address of the service? Does an IP address get substituted at some point? If I deploy a new version of a backend service, do the other services in my application need to update their backend URI at all or will the environment variable resolve to the address of the new container automatically?
    3 replies
    Camilo Santana
    @camilosantana

    "How do I" question:

    goal is to have

    • github main branch merge deploys to production copilot env
    • github stage branch merge deploys to staging copilot env

    how would that be represented in pipeline.yml? documentation isn't entirely clear on complete flows

    4 replies
    Colin Baxter
    @colin.b1_gitlab

    Hello, I'm trying to delete an application but I get this error: "get version for application {appName}: get metadata for stack {appName}-infrastructure-roles: get template summary: ValidationError: Stack with id {appName}-infrastructure-roles does not exist
    status code: 400, request id: "

    The application still shows up when I run copilot app ls

    I might have accidentally deleted this stack manually, but if that's the case then why am I still seeing the stack when I run an app ls?
    Is there any documentation on the specific resources that are created when a new copilot application is created?

    I'm guessing that there must still be some copilot resource in my AWS account that still exists for this app that copilot finds and then uses to list the app.

    3 replies
    zakstucke
    @zakstucke
    Could someone tell me approx when next release is? Is there a release schedule? Thanks
    1 reply
    Grant Moore
    @chinchalinchin
    I only have one container of my web service running. I don't really need a load balancer. Is there any way to assign an elastic IP to my frontend service through copilot instead of provisioning an ALB? relevant cloudformation docs
    10 replies
    Grant Moore
    @chinchalinchin

    Also, has anyone gotten this error when using copilot secret init --cli-input-yaml: ValidationException: Parameter name: can't be prefixed with "ssm" (case-insensitive). If formed as a path, it can consist of sub-paths divided by slash symbol; each sub-path can be formed as a mix of letters, numbers and the following 3 symbols .-_

    I'm pretty sure the error is incorrect as my secret names are fine. I can initialize them one at a time just fine.

    6 replies
    Sam Jones
    @sugarjig
    Is there a way to deploy addons to a different region? I am trying to attach a WAF to a CloudFront distribution and specify rules that only allow specific IPs. Because CloudFront is global, the IPSet and WAF resource have to be deployed to us-east-1. When I try to deploy them using Copilot, I get an error because I'm deploying all my resources to a different region. Curiously, the CloudFront distribution itself can be deployed without any problem.
    5 replies
    Craig
    @2c2c
    hello. is there support for ci/cd on all feature branches? from reading i think you can only make pipeline trigger on a push to a specific branch?
    2 replies
    jhtong
    @myrtleTree33
    Hi there, I would like to register a custom domain on namecheap, and link it to my app using AWS Copilot. I see I can specify a custom domain name. However, how do I link my domain from namecheap to aws servers? Do I have to go through assigning an Elastic IP and linking the domain from there, before running Copilot?
    1 reply
    Camilo Santana
    @camilosantana

    i'm getting

    Template format error: Unresolved resource dependencies [AddonsStack] in the Resources block of the template (Service: AmazonCloudFormation; Status Code: 400; Error Code: ValidationError; Request ID: 2d444ff0-cd51-42fd-a52d-97982a7defd3; Proxy: null)

    in code deploy pipelines when trying to deploy to a new environment (staging) ... i can't figure out what's up. the other env (production) deploys fine... should i delete the env and retry?

    20 replies
    jhtong
    @myrtleTree33
    @camilosantana is this a clean environment? What worked for me was to delete the pipeline, delete the files created by pipeline init, then try to create the pipeline again.
    Also, @camilosantana do note that your Dockerfile needs to be in the top-level of the repository to work.
    Grant Moore
    @chinchalinchin
    do secret changes take effect immediately or do i need to redeploy?
    5 replies
    Jered Sutton
    @jsutton
    Is anyone else having issues with copilot and IAM role template errors? It looks like some parts of the template are getting executed after a dependent resource is created but CF is reporting that it doesn't exist. Sometimes a subsequent run will be successful. It just started happening today.
    Sample error:
    Template error: IAM role webapp-dev-CFNExecutionRole doesn't exist
    4 replies
    Jered Sutton
    @jsutton
    Can anyone confirm that the only way to add a custom domain to an app is to delete the app and re init it?
    1 reply
    Tim Michalski
    @tgmski:matrix.org
    [m]
    I successfully deployed a HTML website using Copilot on an App Runner template. The only issue I'm having is that HTTP is not redirecting to HTTPS. I am using an alias like "www.<domainhere>.com", which works great with TLS cert on HTTPS. But there doesn't appear to be anything listening on port 80. Spent some time searching this forum and reading online, but can't seem to find a setting to switch this on. Has anyone experienced this issue with copilot/app runner?
    Btw, I have a number of apps on the Load Balanced Web template, and that redirects just fine.
    Tim Michalski
    @tgmski:matrix.org
    [m]
    I guess this is an open issue: aws/apprunner-roadmap#37
    Michael
    @msmart
    If I create a backend service with a count > 1, then a load balancer will handle the requests, correct? Will another one be created? Because I currently just have one ALB per environment.
    3 replies
    Craig
    @2c2c
    hello is multiple pipelines supported?
    11 replies
    Efe Karakus
    @efekarakus
    Hi Copilots πŸ‘©β€βœˆοΈ! Version 1.10.0 is now out with support for pub/sub architectures, taskdef_overrides, --force flag, and multiple aliases support (https://github.com/aws/copilot-cli/releases/tag/v1.10.0) πŸš€πŸš€
    3 replies
    Jered Sutton
    @jsutton
    Does pipeline creation support doing a full clone on codecommit repos?
    2 replies
    Dave Bettin
    @dbettin
    Is it possible to pass docker build-args when executing task run?
    2 replies
    Jered Sutton
    @jsutton
    To work around the fact that OutputArtifactFormat isn't supported in pipelines currently, is there a better way to create a custom pipeline other than as an addon to a service?
    2 replies
    Sam Jones
    @sugarjig
    I just learned about Container Insights, but it doesn't seem that Copilot supports this out of the box. Would there be any issue if I enabled Container Insights for a cluster managed by Copilot? Would the configuration be overridden during a deployment?
    3 replies
    Sam Jones
    @sugarjig
    In the manifest for a load balanced web service, are the settings under count mutually exclusive? More specifically cpu_percentage, memory_percentage, requests, and response_time. If more than one of these are specified, then are they all taken into account when determining scaling events?
    2 replies
    srikaransc
    @srikaransc
    Hi I am trying to setup copilot for deploying .net application using bitbucket for windows ecs services does anyone have any examples for me to start with, any help would be appreciated.
    Jered Sutton
    @jsutton
    Is there a way to pass parameters to resource addons?
    10 replies
    James Eastham
    @plantpowerjames_twitter
    Hi all, has anybody ever deployed a GRPC application using copilot? From my understanding of the AWS docs the ALB needs to be configured differently for GRPC connections
    Michael
    @msmart
    Hi There, what is the recommended approach to activate the access logs for the load balancers created by load balanced web services?
    3 replies
    Jerry Verhoef
    @JerryVerhoef
    Is there an official docker image with has copilot installed? I want to use docker image so that we can control that everyone is using the same version of copilot
    1 reply
    Camilo Santana
    @camilosantana

    Issue

    when env init using lates 1.10 and overriding subnet/vpc CIDRs, the s3 bucket created for infrastructure ends up empty and the following error is logged:

    to recreate

     app=wagyu
     net="10.14.2"
     domain=company.com
     copilot app init $app \
      --domain $domain && \
     copilot env init \
      --app $app \
      --name production \
      --profile default \
      --region us-east-1 \
      --override-private-cidrs $net.0/26,$net.64/26 \
      --override-public-cidrs $net.128/26,$net.192/26 \
      --override-vpc-cidr $net.0/24
    βœ” Linked account ########## and region us-east-1 to application wagyu.. 
    
    ✘ upload custom resources to bucket stackset-wagyu-infrastru-pipelinebuiltartifactbuc-19sdfswdg: read template custom-resources/dns-cert-validator.js: open templates/custom-resources/dns-cert-validator.js: file does not exist

    additional info

    the folder expected in the bucket aren't there

    expected folders:

    manual/    Folder
    pipeline-muve-core-s/    Folder
    scripts/

    workaround

    if i downgrade to 1.9.0, copilot env init works as expected.

    10 replies
    Camilo Santana
    @camilosantana

    Question:

    can multiple services use/access the same copilot storage init --storage-type Aurora --engine PostgreSQL instance?
    4 replies
    errrken
    @errrken
    Hi there! What is the status on using Gitlab for pipelines?
    3 replies
    Loc Bui
    @buihuuloc
    Hello there
    How could I enable https with copilot?
    1 reply
    π”Έπ•Ÿπ•šπ•€π•™ 𝔻𝕔𝕣𝕦𝕫
    @anishdcruz1_twitter

    Hi everyone,

    Is copilot a good use case for hosting static sites?

    2 replies
    Michael
    @msmart
    Hi all, can someone please tell me what the --prodflag does in the copilot env init command? Can I set this flag to true after an environment was created?
    3 replies
    π”Έπ•Ÿπ•šπ•€π•™ 𝔻𝕔𝕣𝕦𝕫
    @anishdcruz1_twitter

    Hi everyone,
    I created an App Runner type app and I noticed an orphan ECS cluster created.
    Is this the expected behaviour?

    Thanks

    3 replies
    Craig
    @2c2c
    is there a way to bind static ip/ip range to a cluster
    2 replies
    Craig
    @2c2c
    i deployed a single task on fargate. need to setup a ip range permission on a server deployed locally to talk to the task but not sure where or how to deal with assigning static ip
    3 replies
    Serdar Kiliç [RzH]
    @serdar_twitter
    Running into an issue deploying a Request-Driven Web Service with the error: ValidationError: Template format error: Unrecognized resource types: [AWS::AppRunner::Service] the manifest.yml is unmodified from what was generated, but I'm assuming it's complaining about this following section?
    Service:
        Metadata:
          'aws:copilot:description': 'An App Runner service to run and manage your containers'
        Type: AWS::AppRunner::Service
    6 replies
    Luke Bodeen
    @cloneluke
    hi, new to co-pilot, here is how I run my app locally: docker run -d -p 8080:8080 --name airflow-test-container airflow-test-image webserver
    how do I specify the webserver argument for my fargate/copilot task?
    5 replies
    Gautam
    @gautam-nutalapati

    Hey All, A question regarding sidecar resource consumption. I couldn't find much info online about this one anywhere. I am hoping to get some answers here based on side car work done for copilot.

    I am running X-Ray daemon as a sidecar. I see that task definition has CPU/Memory but containers do not have any specific resources assigned to them.
    Will running sidecar effect the resources allocated to my service container? How can we see if sidecar is using too much resources?

    4 replies
    Cole Crawford
    @ColeDCrawford
    How are people handling secrets for AppRunner services? Typically I put those in SSM but it looks like the docs say they are not supported, and my test of that seemed to fail
    Cole Crawford
    @ColeDCrawford
    Looks like you can't even add them manually under the AppRunner env as the service fails without the secrets, and AppRunner won't let you change the the config unless the service succeeds and you pause it