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

Fix naming for pipeline role and CodeBuild projects. Make physical na… #24

Conversation

john-shaskin
Copy link
Collaborator

Update naming of some Pipeline and CodeBuildAction resources to aid in making multiple instances of the same template generate unique resource names.

@john-shaskin john-shaskin force-pushed the feature/unique-codepipeline-resource-names branch 2 times, most recently from 7568f0b to dc66529 Compare October 15, 2018 20:54
…l naming unique across multiple stack instances.
@john-shaskin john-shaskin force-pushed the feature/unique-codepipeline-resource-names branch from dc66529 to 3fdf25b Compare October 15, 2018 21:06

policy_name = "CodeBuildPolicy%s" % chain_context.instance_name
role_name = "CodeBuildRole%s" % suffix
policy_name = "%sCodeBuildPolicy" % chain_context.instance_name
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this isn't a managed policy so we won't see the name in AWS, but I guess it asks the question if consistency even here would be helpful? Suffix vs prefix...

@@ -155,7 +155,7 @@ def create_project(self, chain_context, codebuild_role, codebuild_environment, n
DependsOn=codebuild_role,
Artifacts=artifacts,
Environment=codebuild_environment,
Name=project_name,
Name="%s-%s" % (chain_context.instance_name, project_name),
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one is different too. It has a dash.

I'm sure there are a bunch of other inconsistencies.. so not asking for a change in this PR, but I'll create an issue on this board to address it.

@brettswift
Copy link
Owner

related issue: #25

@brettswift brettswift merged commit a66bcc4 into brettswift:master Oct 15, 2018
@john-shaskin john-shaskin deleted the feature/unique-codepipeline-resource-names branch October 15, 2018 22:23
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 this pull request may close these issues.

2 participants