To merge CFT Stack with newly discovered/scanned resources i need the resource identifier schema, but what is it?

0

To generate a template to import newly scanned resources into an existing stack. I need the resource type and resource identifier for each resource. The scan provides this information. However, to get this information for resources already in the stack, I know what value to use? I.E. Resource identiifer type for DynamoDB is "TableName" but what is it for an EBS volume. If I list the resources for a stack it gives the resource type but not the resource identifier type?

  • Currently the only way I see to to do this. Is to pull the physical id from the stack resource list and then run list scanned resources where I filter on the physical id. This seems unnecessary.

asked a month ago98 views
1 Answer
0

Hello,

From your query it seems that you are talking about generating a template to import scanned resources into an existing stack via IaC generator.

When we create a template via IaC generator using the option ‘Update the template for an existing stack’, we can add the scanned resources and in the scanned resources list we can see the ‘Resource identifier’ and ‘Resource type’. From there we can select the resource we want to add. After adding the resource, we can proceed to creating a template and further we can import that template into our stack [1].

You want to know what is the Resource identifier for the EBS Volumes. So the Resource identifier for the EBS volumes is the “Volume ID” of that volume resource. You can find the volume Id under the EC2 console —> Volumes.

As you have mentioned in your query statement that: “If I list the resources for a stack it gives the resource type but not the resource identifier type?” My understanding of this is that you are saying when you list the resources, under the ‘Resources’ tab in the stack, then you can only see the resource type but not the resource identifier. The resource identifier will be the ‘Physical Id’ of the resource.

If you have any specific concerns OR if you are facing any issue’s in creating template for importing resources, so in order to answer your question, we might require details that are non-public information. In that case please consider opening a support case with AWS using the following link: https://support.console.aws.amazon.com/support/home#/case/create

References:

[1] https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/generate-IaC.html

AWS
SUPPORT ENGINEER
answered a month ago