Skip to content
This repository was archived by the owner on Dec 7, 2023. It is now read-only.

CodePipeline does not return ARN #596

Closed
meap opened this issue Feb 22, 2020 · 1 comment
Closed

CodePipeline does not return ARN #596

meap opened this issue Feb 22, 2020 · 1 comment

Comments

@meap
Copy link

meap commented Feb 22, 2020

I want to connect CodeStar notification rule to Pipeline, where ARN is needed as a resource value, but the pipeline does not return ARN.

I have to do manually by concatenating string which is not good.

  PipelineNotificationRule:
    Type: AWS::CodeStarNotifications::NotificationRule
    Properties:
      DetailType: FULL
      Name: !Sub '${AWS::StackName}-notification-rule'
      Resource: !Sub "arn:aws:codepipeline:${AWS::Region}:${AWS::AccountId}:${AWS::StackName}-pipeline"
      Status: ENABLED

Is there a better way? I guess the pipeline should return ARN in return values.

@PatMyron
Copy link
Contributor

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

No branches or pull requests

2 participants