Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New resource type: codeconnections, codestar-connections #63

Closed
dleavitt opened this issue Jul 26, 2024 · 2 comments · Fixed by #64
Closed

New resource type: codeconnections, codestar-connections #63

dleavitt opened this issue Jul 26, 2024 · 2 comments · Fixed by #64

Comments

@dleavitt
Copy link
Contributor

dleavitt commented Jul 26, 2024

Info:

There's also a sort of equivalent resource (old version of the same thing, I think) that lives under the codestar-connections resource type. The ARN/URL formula is the same as the above, with codeconnections replaced with codestar-connections:

Notes:

  • Console URLs for these are especially useful, as they can't be fully created programmatically - there's a step that needs to be done via the console.
  • Create one from here: https://us-west-2.console.aws.amazon.com/codesuite/settings/connections
  • I'm not sure the codestar ones can be created via the console anymore? Can still be created via API or Cloudformation though.
  • Happy to open a PR!

Cloudformation Entities:

Some code:

const [prefix, id] = arn.split("/");
const [, , ns, region, account] = prefix.split(":");
const url = `https://${region}.console.aws.amazon.com/codesuite/settings/${account}/${region}/${ns}/connections/${id}`;
@fxkr
Copy link
Contributor

fxkr commented Jul 27, 2024

Thanks! That would be a great contribution. Feel free to open a PR, if you like! It looks like it should be a fairly straightforward change (1 line per resource type, + tests), as it seems all the necessary variables are already available.

Otherwise I can do the code change as well, but then it may take me a days to find time.

@dleavitt
Copy link
Contributor Author

Will do

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants