How to use !Ref or Fn:GetAtt in plugin development #12069
Unanswered
cmcnicholas
asked this question in
Q&A
Replies: 1 comment
-
OK further to the above I have managed to get the following to work: const fn = Fn.getAtt("MyTopic", "TopicArn");
const topic = Topic.fromTopicArn(this, "SomeId", fn.toString());
topic.addSubscription(new SqsSubscription(this.queue, { filterPolicy, rawMessageDelivery: true })); if there a friendly way to serialise/deserialise constructs:
one-of-them-queues:
type: queue
worker:
handler: worker.handler
subscriptions:
- topicRef:
Fn::GetAtt:
- MyTopic
- TopicArn for example, but what type am I expecting |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all, I'm trying to open a PR for lift that requires resolving a
!Ref
as one of its arguments (more here getlift/lift#345).But simply put I am trying to achieve the following:
How does a plugin developer go about resolving or specifying to the cloudformation config that the ref needs to be resolved against a dynamically created resource and not a specific arn?
For instance I can do the following but want to support resources that are created by the same serverless config and I'm having difficulty understanding how this should be provided the cloudfront config.
Any plugins that perform this sort of interaction would be really useful to browse through if possible?
Beta Was this translation helpful? Give feedback.
All reactions