question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CodeDeploy: allow specifying account/region when importing ServerDeploymentGroup

See original GitHub issue

What is the problem?

CodeDeployServerDeployActionProps does not include region as an optional property. This is a problem because the region property is required when specifying a CodeDeployServerDeployAction that calls a deploymentGroup that resides in a region that is different from that of the pipeline.

Reproduction Steps

// deployment group created in Region A const deployGroup = new ServerDeploymentGroup(this, ‘ID’, …props)


// CodeDeployServerDeployAction created in Region B const deployAction = new CodeDeployServerDeployAction({ actionName: ‘foo’, input: bar, deploymentGroup: deployGroup, })

What did you expect to happen?

Expected Action to reference the Region A in codepipeline.

What actually happened?

Codepipeline deploy action referenced the residing region of the codepipeline.

I was able to work around this on my local by adding region as an optional parameter to CodeDeployServerDeployActionProps

CDK CLI Version

1.118

Framework Version

No response

Node.js Version

14.17.1

OS

NAME=“Ubuntu” VERSION=“18.04.4 LTS (Bionic Beaver)”

Language

Typescript

Language Version

3.7.5

Other information

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:9 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
pauliedohertycommented, Oct 26, 2021

Thank you very much @skinny85, will try to get around to this next week!

0reactions
github-actions[bot]commented, Dec 15, 2022

This issue has not received any attention in 1 year. If you want to keep this issue open, please leave a comment below and auto-close will be canceled.

Read more comments on GitHub >

github_iconTop Results From Across the Web

aws-cdk/aws-codedeploy module - AWS Documentation
To import an already existing Deployment Group: declare const application: codedeploy.ServerApplication; const deploymentGroup = codedeploy.
Read more >
@aws-cdk/aws-codedeploy | Yarn - Package Manager
AWS CodeDeploy is a deployment service that automates application deployments to Amazon EC2 instances, on-premises instances, serverless Lambda functions, ...
Read more >
awscodedeploy - Go Packages
The `LoadBalancerInfo` property type specifies information about the load balancer or target group used for an AWS CodeDeploy deployment group. For more ...
Read more >
CodeDeploy — Boto3 Docs 1.26.34 documentation
For an Amazon ECS deployment, this is an AppSpec file that specifies the Amazon ECS task definition, ... import boto3 client = boto3.client('codedeploy')....
Read more >
@aws-cdk/aws-codedeploy NPM | npm.io
To create a new CodeDeploy Deployment Group that deploys to EC2/on-premise instances: import * as autoscaling from '@aws-cdk/aws-autoscaling'; ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found