1

I am creating a sqs with a dead letter queue. The creation of the queue is success but I need to store the ARN value of the queue in systems manager at parameter store. Is there any way to pass the value to parameter store? Please provide inputs.

I tried like this, but it is not deploying in the parameter store.. I am deploying through cdk using python.

    dead_letter_queue: sqs.Queue = sqs.Queue(
        self,
        id="DeadLetterQueue",
        queue_name="dlqueue",
        retention_period=Duration.days(14)
    )
    self.sqs_queue: sqs.Queue = sqs.Queue(
        self,
        id="SqsQueue",
        queue_name="queue",
        retention_period=Duration.days(4),
        visibility_timeout=Duration.hours(6),
        delivery_delay=Duration.seconds(0),
        receive_message_wait_time=Duration.seconds(0),
        max_message_size_bytes=262144,  # 256 KiB
        #encryption=sqs.QueueEncryption.SQS_MANAGED,
        dead_letter_queue=sqs.DeadLetterQueue(
            max_receive_count=1,
            queue=dead_letter_queue

        )

    )

    ssm.StringParameter(self, "arn value of queue",
                        parameter_name="test",
                        string_value=self.sqs_queue.queue_arn)
luk2302
  • 55,258
  • 23
  • 97
  • 137
mac34
  • 11
  • 1
  • 'not deploying in the parameter store' - the parameter is not created? it doesn't have the right value? any errors? – Ermiya Eskandary Jan 04 '23 at 11:35
  • @ErmiyaEskandary yes! the parameter is not created .. doesn't show any error. is there any other approach to get the arn value and store ? – mac34 Jan 04 '23 at 11:42

0 Answers0