Wednesday, August 3, 2022
HomeCyber SecurityWorth of property Teams have to be of kind Checklist of String...

Worth of property Teams have to be of kind Checklist of String | by Teri Radichel | Bugs That Chew | Aug, 2022


String versus listing of strings in CloudFormation templates

Generally the values it’s essential present to a property in a CloudFormation template must be a single string, and generally the CloudFormation template property requires an inventory of strings. You possibly can work out which it’s essential present utilizing the CloudFormation documentation for the useful resource you are attempting to create.

In my case I used to be making an attempt to create an IAM Coverage:

The YAML syntax reveals you can go in a bunch to affiliate the coverage with a Group:

Whenever you see a touch in entrance of a String meaning it’s essential go in an inventory of strings. For those who have been utilizing JSON the listing would seem like this:

[GroupName1, GroupName2]

In yaml it appears to be like like this:

- GroupName1
- GroupName2

Even for those who solely must go in a single merchandise it’s essential go it in as an inventory, which in yaml means every worth is preceded by a touch. In json the values are in brackets separated by a comma.

In my case, this:

Assets:batchjobadminuser:Sort: AWS::IAM::PersonProperties:UserName: !Ref usernameparamTeams: !ImportValue groupbatchjobadmins

Grew to become this:

Assets:batchjobadminuser:Sort: AWS::IAM::PersonProperties:UserName: !Ref usernameparamTeams: [!ImportValue groupbatchjobadmins]

Teri Radichel

For those who preferred this story please clap and observe:

Medium: Teri Radichel or Electronic mail Checklist: Teri Radichel
Twitter: @teriradichel or @2ndSightLab
Requests companies by way of LinkedIn: Teri Radichel or IANS Analysis

© 2nd Sight Lab 2022

____________________________________________

Creator:

Cybersecurity for Executives within the Age of Cloud on Amazon

Want Cloud Safety Coaching? 2nd Sight Lab Cloud Safety Coaching

Is your cloud safe? Rent 2nd Sight Lab for a penetration check or safety evaluation.

Have a Cybersecurity or Cloud Safety Query? Ask Teri Radichel by scheduling a name with IANS Analysis.

Cybersecurity & Cloud Safety Assets by Teri Radichel: Cybersecurity and Cloud safety lessons, articles, white papers, displays, and podcasts



RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments