Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
    Stenio Ferreira
    @stenio123
    yes. It is just because the files in my repo are not in the root directory, they are inside a "server" directory
    It builds fine, the only problem is I cant deploy to s3 because I dont have access to the credentials. Not sure how to rely on the IAM role for that
    When I ran this from Lambda (no Docker), it worked because the credentials are available as env variables. But I hit the 500mb limit. And in Docker the secret env vars are not passed
    Michael Hart
    @mhart
    the ec2 server should be running with an iam role – any time you use the aws sdk (and cli) on that server, it should pull the credentials for that iam role from the ec2 metadata
    so you'll just need to give that role access to whatever s3 bucket you need
    If you're using the CloudFormation template, you can just update the permissions from there – and update your stack: https://github.com/lambci/ecs/blob/master/cluster.template#L97-L137
    Stenio Ferreira
    @stenio123
    @mhart OMG you are right lol. I got caught up in other errors and thought that was the problem. I think now I know what is wrong, and it is not the lack of AWS credentials. Thank you!
    Stenio Ferreira
    @stenio123
    @mhart I am trying to understand what controls the constraints of how many concurrent deployments are possible when using lambci/ecs.
    On the CloudFormation template, the InstanceType parameter will determine the disk space/available computing power.
    How about the AutoScalingGroup properties? Do the defaults mean that only 1 build can be run at the same time? If I change that do I also need to change the CreationPolicy.ResourceSignal?
    Another thing is I have run into a "Thin pool" error, which went away once I cleaned the old Docker images. How do you deal with that, do you have a cron job on the ECS instance host that does the cleanup regularly?
    Stenio Ferreira
    @stenio123
    The ECS agent supposedly should do the cleanup since it is version 1.14.1, however the problem only goes away once I run docker rmi $(docker images --filter "dangling=true" -q --no-trunc)
    I believe it is because I am building the Dockerfile.test everytime. I have seen that lambci/ecs runs build followed by run, but it is not clear to me how to pass a shell script to the run stage. Maybe if I could leverage $LAMBCI_DOCKER_RUN_ARGS?
    Nika
    @interisti
    @mhart we removed that gcc step, cause dynalite now downloads the prebuilt image.
    Craig Steinberger
    @cjs
    Anyone interested in a PR that would help with deployments of lambci off of your own S3 buckets, rather than the public ones? It seems to be some parameterization in the publish.sh script, plus a step to create the buckets in the first place.
    Rohit Verma
    @mozinrat
    Is there any gitlab support or poc of that, has someone tried that?
    Amrit Gill
    @agill17
    New to lambci and wanted to know if it would be possible to pull lambda src from git, zip it and push it to an s3 bucket??? If so can I use the the lambci installation CFN template or would I have to customize it?
    Benjamin Baldivia
    @Goblinlordx
    Having a bit of trouble just getting started with this. I attempted to use "launch stack" as well as a few different ways (all really used same template though) and I get an error on "Custom::ConfigUpdater" every time. It looks like at the point in time "Custom::ConfigUpdater" is run the ConfigTable is not created yet. I adjusted the template and added "DependsOn: ["ConfigTable"]" for "ConfigUpdater" but the result of this was a completely different error: " Failed to create resource. User: arn:aws:sts::837930595040:assumed-role/lambci-private-LambdaExecution-LR33W5LBSV98/lambci-private-build is not authorized to perform: iam:PassRole on resource: arn:aws:iam::837930595040:role/lambci-private-SnsFailures-1Q43HAMIVMMR5" . I am honestly not very familiar with CloudFormation and all the config options that seem to be available. Is nobody else having this issue with this stack?
    Benjamin Baldivia
    @Goblinlordx
    T-T last message here from ~5 months ago... hopefully someone is still around?
    Michael Hart
    @mhart
    @Goblinlordx I haven't heard of anyone having this problem – what region are you launching it in?
    Benjamin Baldivia
    @Goblinlordx
    image.png
    N. Virginia
    Benjamin Baldivia
    @Goblinlordx
    image.png
    The error where the ConfigTable doesn't exist seems to not be happening now (with provided template) but it was definitely happening before =/
    Benjamin Baldivia
    @Goblinlordx
    still getting the error about PassRole permission though
    Benjamin Baldivia
    @Goblinlordx
    Fixed with your update~ Thanks @mhart
    Amin Ahmed Khan
    @aa2kb
    Hi there everyone!
    Just wanted to ask a question. Is there a way to run lambCI builds manually
    for eg: I want run every night not on github web hook trigger
    Cory Mawhorter
    @cmawhorter

    mhart continues to already-do-things-a-year-ago that i've just now thought about.

    i have a slow lambda fn that i'm thinking about moving off of lambda. but i'd like to avoid refactoring bc it's just a test and i think the reason for the move is temporary.

    is anyone aware of something that'd let me ship an existing lambda function using ecs? https://github.com/lambci/ecs seems like a good start, but that's purpose-built for lambci. maybe there is something out there for just this purpose?

    my goal is to continue building for lambda and as needed, move functions off lambda into ecs or back.

    actually... thinking more about this. vpc support in lambda is god-awful. this would be a workaround for that too until aws gets their house in order
    also efs. lol.
    Zachary Yoon
    @syyunn
    Hi
    Ian
    @ianfixes
    Is there a more relevant chat medium for this project? Things seem dated in here.
    Michael Hart
    @mhart
    Hi @ianfixes – what's up?
    Ian
    @ianfixes
    Oh nice! I was looking for something architectural about lambci. Is it a serverless replacement for things like AWS CodePipeline / CodeBuild (like does it have its own registry of build IDs, its own UI, etc)? Or is it a collection of lambdas that you'd use with CodePipeline?
    Michael Hart
    @mhart
    It predates CodeBuild and CodePipeline. It has its own UI. Version 1.0 will have support for being launched via other CI systems as well as being standalone – I'm working on that in the little spare time I have 😊
    Ian
    @ianfixes
    I like a lot of the parts of this project and I'm debating whether my time would be best spent contributing or forking it
    Is there a document that talks about where build IDs, logs, etc are stored? Also, is there any concept of visualizing the build progress or do you just watch the logs like in "classic" Jenkins?
    Michael Hart
    @mhart
    There's no document like that – aside from the README which talks about this a little. Build IDs are stored in DynamoDB and logs in S3.