1,539 questions
0
votes
0
answers
43
views
AWS ElasticBeanStalk
I'm trying to deploy a Java app with Elasticbeanstalk and CodePipeline. The elasticbeanstalk works well but when I try to deploy using a pipeline shows the next error:
Deployment completed, but with ...
0
votes
0
answers
46
views
CODEBUILD_SRC_DIR in AWS CodeBuild points to unexpected path — how is it constructed?
I'm using AWS CodeBuild to build a project hosted in AWS CodeCommit.
My build environment uses the amazonlinux-x86_64-standard:5.0 image.
In my build project settings:
Source: AWS CodeCommit
...
0
votes
1
answer
84
views
How to trigger AWS CodePipeline from GitHub push event with custom environment variables?
I recently automated the deployment of a web application hosted on a VPS (Virtual Private Server) by integrating GitHub Actions and AWS CodeBuild.
Code Repository: GitHub
Build & Test: AWS ...
1
vote
2
answers
821
views
AWS Deploy Error "The provided role does not have the elasticbeanstalk:CreateApplicationVersion permission"
I am new to AWS. I tried to create a simple pipeline used to build a small NodeJS app to be deployed in AWS Elastic BeanStalk. The CodePipeLine however, is failing at Deploy stage with the following ...
0
votes
0
answers
35
views
In AWS CodeDeploy the scripts cannot find the source files
I have a AWS CodePipeline that is triggered by S3. I upload a zip file to S3 that contains a war file, appspec.yml and a folder for the scripts. My appspec.yml looks something like this:
version: 0.0
...
0
votes
0
answers
38
views
Creating cdk pipeline but it deletes itself
I am new to cdk and trying to create a simple pipeline from udemy course and at first its fine I even saw that the pipeline was being created and when it was almost complete i got a pipeline not found
...
1
vote
1
answer
94
views
How can I fetch a commit message in AWS CodePipeline/CodeBuild to implement a `[skip ci]` command?
I'm using an AWS CodePipeline with GitHub Connections as the source action to deploy a Python app to an AWS Elastic BeanStalk. I’d like to emulate GitHub Actions' [skip ci] feature by detecting a ...
2
votes
1
answer
209
views
CI/CD pipeline design: Single vs. Separate pipelines for test/prod environments
I'm seeking wisdom on CI/CD pipeline design.
I primarily work in infrastructure and am currently tasked with designing and building a CI/CD pipeline for the first time. While I've used Git personally, ...
0
votes
0
answers
39
views
AWS CDK Codepipeline deploy certain Stacks within cdk Stage
I have an existing aws account with infrastructure that has already been deployed via CDK with a codepipeline. The codepipeline is specifying which stacks to deploy via the addStage function of ...
0
votes
0
answers
62
views
How can I obtain secondary sources in codebuild project that is part of a codepipeline
I have a CodeBuild project setup via Terraform, and I've specified secondary sources like
secondary_sources {
git_clone_depth = 0
location = "https://github.com/...repo-a...&...
0
votes
0
answers
90
views
Why is my NX synth command failing with EBADF: bad file descriptor, write?
I’m running npx nx synth demo-tenant-workload-infra-assets inside a build container, but it's failing with the following error:
npm ERR! code EBADF
npm ERR! syscall write
npm ERR! errno -9
npm ERR! ...
1
vote
1
answer
506
views
AWS CodePipeline not able to retrieve Bitbucket repository: No Branch [main] found for FullRepositoryName
I am trying to configure an AWS CodePipeline that retrieves code from a Bitbucket repository and then executes a script. So far manipulating the repository in AWS CodePipeline has proven to be ...
0
votes
1
answer
73
views
Why does my AWS CodeBuild project fail to create a CloudFormation stack with the error "Template file not found"?
I am working on automating the deployment of a static website using AWS CodePipeline and CodeBuild, along with CloudFormation. However, I am encountering some issues in my buildspec.yml configuration.
...
0
votes
1
answer
159
views
"AWS CodeBuild Error: 'Unable to initialize cache download: no paths specified to be cached' in Buildspec.yml"
I am encountering an issue during the PRE_BUILD phase in AWS CodeBuild. My buildspec script attempts to connect to a MySQL database to verify connectivity, but the connection fails with the following ...
-2
votes
1
answer
83
views
When using terraform to deploy codepipeline I get a deployment error [closed]
Below are my codebuild and codepipeline resource blocks
resource "aws_codebuild_project" "xxxx_build" {
name = "xxxx-project"
service_role = aws_iam_role....
0
votes
2
answers
440
views
I keep getting the error "The AWS ECS container todo-ecr-container does not exist" even though the container exists in my task definitions
I am learning about AWS codepipelne for the first time so I am a bit sloppy, but I am trying to build and deploy an artifact to I guess ECS? But I keep getting this error "The AWS ECS container ...
0
votes
0
answers
63
views
bitbucket aws codepipeline build notification
import { CfnOutput, Duration, RemovalPolicy } from 'aws-cdk-lib'
import * as codebuild from 'aws-cdk-lib/aws-codebuild'
import * as codepipeline from 'aws-cdk-lib/aws-codepipeline'
import * as ...
0
votes
1
answer
95
views
AWS: How to delete S3 buckets when deleting CodePipeline
I use the CloudFormation template to create CodePipeline. The following snippet shows that it creates S3 bucket to store code artifacts:
CodePipelineArtifactsBucket:
Type: AWS::S3::Bucket
...
0
votes
2
answers
289
views
AWS CodePipeline not extracting artifact before deployment
I am trying to set up a CI/CD for my GitHub repo using CodePipeline. I have set up all stages:
In the Source stage, the action provider is GitHub. It links my repository. The entire code pipeline is ...
-1
votes
1
answer
201
views
How to configure git push trigger in AWS codepipeline?
"Since there is no proper way to configure push filter using cdk for aws codepipeline, I've tried the below. But it gives me an error which is posted below. Tried multiple things but non of them ...
1
vote
0
answers
127
views
AWS CodePipeline Session Policy Error on S3 ListBucket During Deploy
I am creating an AWS CodePipeline via a CloudFormation template with three steps
Checkout source from GitHub
Build using CodeBuild
Deploy
However, the pipeline fails on the Deploy step with the ...
-1
votes
1
answer
171
views
Why does CodePipeline service role need iam:PassRole?
I was reading the AWS documentation explaining how to create the CodePipeline service role. However, I don't understand why it needs the following statement:
{
"Effect": "Allow",
...
1
vote
0
answers
188
views
How can I speed up my CDK Synth step in code pipeline by caching requirements?
Currently, the synth step in my code pipeline looks something like this:
synth=pipelines.ShellStep(
"Synth",
input=pipelines.CodePipelineSource....
-1
votes
1
answer
65
views
Having problem in code deploy during CICD pipeline
I was making CICD pipeline for angular app but facing error in code deploy stage and code is present in githhub. I tried all method but still this error is not resolving .
Error code
ScriptFailed
...
1
vote
2
answers
620
views
An unspecified error occurred when tring to connect Github v2 using AWS codepipeline
I am tring to create AWS Codepipeline and select the source as Github (version 2). Connection was successfull but unable to select the connection name shows warning as follow. when tring using version ...
1
vote
1
answer
130
views
Use Multiple sources in an AWS-CodePipeline pipeline for a lambda invoke
I have been trying to implement a functionality on code-pipeline AWS which I have yet been unable to implement.
So, I have my code repositories on Bitbucket for my microservices. On Bitbucket, I have ...
2
votes
1
answer
526
views
buildspec.yaml not found- AWS codebuild failed
Based on my search, this could happened only when buildspec.yaml file is not there in the root folder. But in my repo buildspec.yaml file is there in the root folder.
while building the code using AWS ...
0
votes
1
answer
65
views
Sceptre CodePipeline FilePaths configuration - duplicate filters created
I am attempting to define a CodePipeline V2 in Sceptre that will be triggered if specific files are modified.
By default, all files will trigger the pipeline
sceptre template parameters
Parameters:
...
-1
votes
1
answer
50
views
Error reporting failure to CodePipeline: JobNotFoundException: Job with id 'JobId' does not exist
screenshot 1enter image description hereI am getting error in codeBuild saying JobId not found. Below is the code i am using
`putPipelineFailure(error) {
return new Promise((resolve, reject) => {
...
0
votes
1
answer
135
views
Permissions error when trying to get codebuild to push to ECR AWS because it's registering as an unknown user
As the title suggests, my codebuild is not letting me fulfill my buildscript to push the docker image to ECR. It works perfectly when on my local machine, but not in codebuild. The error message is ...
0
votes
2
answers
62
views
how to omit COMMAND EXECUTION ERROR when test fails
I am running an AWS CodePipeline and running a pytest, according to the success or failure I will run the scripts. But my make test when failed exists with COMMAND EXECUTION ERROR . How can I stop the ...
1
vote
0
answers
44
views
How to prevent AWS CodePipeline from Deploying Service in ECS When Image Hasn't Changed?
AWS CodePipeline Deploys Unchanged Images in ECS
I am deploying multiple services using AWS CodePipeline and CodeBuild. The pipeline has been set up using AWS Copilot with the following commands:
...
-1
votes
1
answer
108
views
Swagger Theme version deprecated
i am deploying my node js backend on ubuntu ec2 machine but when it is deployed it gives the following error
at node:internal/main/run_main_module:22:47
2| Error: Explicit version indication is ...
1
vote
0
answers
115
views
AWS CodeBuild AccessDeniedException for secretsmanager despite correct IAM policies
I'm setting up a CI/CD pipeline using AWS CodePipeline and AWS CodeBuild to deploy a Docker application running on an Elastic Beanstalk instance. The Docker credentials are stored in AWS Secrets ...
0
votes
1
answer
99
views
AWS V2 CodePipeline complaining about variables
I have the following on my AWS CodePipeline Cloudformation template:
Variables:
- Name: VARIABLE_NAME
Description: Some description
DefaultValue: ""
Version: 2
When I create ...
0
votes
1
answer
181
views
Deploy without atrifact module
INCIPIT: I wanted to ask if anyone knew how to use codebuild to publish via the (blue/green) method an ecs service with auto scaling and alb.
PROBLEM: when I try to run the stage in deploy ...
-1
votes
1
answer
167
views
Deploying a New Lambda Function with AWS CodeBuild and AWS CodeCommit but Lambda function not created
I am trying to deploy an AWS Lambda function using AWS CodeCommit and AWS CodeBuild. The pipeline works well—all are in the right order, and the build is successful—but it doesn't create the Lambda ...
1
vote
0
answers
193
views
Why my AWS ECS cluster is not showing the option to switch to code-deploy controller?
I am creating an application & deployment group in aws aws code-deploy, but I am facing the issue while creating the same. Screenshot for reference:
I have tried to update the code-deploy ...
1
vote
0
answers
184
views
How to Solve AWS Elastic Beanstalk Deployment Error: "Failed to deploy application"?
I'm encountering persistent deployment errors on AWS Elastic Beanstalk and codePipeline, and I need some assistance to diagnose and resolve the issue. The error message I receive is:
Deployment ...
0
votes
1
answer
67
views
CodePipeine cannot fetch the source from CodeCommit
I have this error when codepipline trying to fetch source from codecommit
The service role or action role doesn’t have the permissions required to access the AWS CodeCommit repository named defon-...
1
vote
1
answer
387
views
CI/CD Pipelines with AWS SAM
I've been building and deploying my stack manually during development using sam build and sam deploy, and understand how that and the samconfig.toml work. But now I'm trying to get a CI/CD pipeline ...
0
votes
1
answer
321
views
AWS CDK CodePipeline without Synth/ShellStep
My AWS Project builds a Docker Image, pushes it to ECR and then deploys it to an ECS container.
The source code is on CodeCommit, and I already have two working CDK Stacks to 1) Build the Docker image,...
0
votes
0
answers
68
views
AWS codepipeline for Java Gradle application
I am trying to setup codepipeline in AWS for Java Gradle application. The application is building fine. But when the jar file to uploaded to Elastic Beanstalk, I get 502 bad gateway nginx error. When ...
0
votes
1
answer
44
views
Following up (2024) does aws codepipelines support multiple repositories?
I'm trying to build an MVP and want to use aws code pipelines.
But for an MVP a pipeline per repo is too much last stack overflow i saw was in 2022, was wondering if this is still valid?
AWS Doc is ...
0
votes
1
answer
116
views
Can't use .sh file in appspec.yml hooks in ECS Fargate green/blue deployment
I have a CI/CD structure on AWS with CodePipeline, CodeBuild, CodeDeploy, TaskDefinition, ECR, ECS green/blue deployment. I used AWS Fargate as a ECS service. I have Laravel and React apps which have ...
0
votes
1
answer
670
views
How to automate deploying to environments with AWS Copilot CLI?
Needless to say, I am new to AWS. Excuse me.
I had a simple static site project (HTML/CSS/JS/PNG). Then put my files from root to /src, and npm init on root and amongst other things installed webpack ...
1
vote
0
answers
51
views
Bypass manual approval stage in AWS CodePipeline
In AWS CodePipeline is there a way to make manual approval conditional? E.g. depending on the value of a pipeline variable passed at runtime bypass/auto-approve it.
0
votes
1
answer
83
views
Hi fellow developers, there is something I need to know about DataSync Start ExecutionApi
I am working with Data sync start execution Api.
I have One stack in which I am creating all the locations, Tasks, Role and I am using DataSync client with startExecutionApi to call the task in the ...
0
votes
1
answer
48
views
AWS CodePipeline Deploy stage Can't Access Dockerfile During Deploy Stage
During the Deploy stage in AWS CodePipeline I receive the following error:
[ERROR] An error occurred during execution of command [app-deploy] - [Docker Specific Build Application]. Stop running the ...
0
votes
1
answer
152
views
502 Gateway Error AWS Elastic Beanstalk Django
I am trying to deploy a Django app to Elastic Beanstalk. I used AWS CodePipeline as my CI/CD process. The instance is able to successfully deploy, but when I click on the domain it gives me a 502 ...