Get specific parameters from CloudFormation
up vote
0
down vote
favorite
I'm trying to fetch some parameters from CloudFormation and save them to file.
Example parameters:
Parameters:
Parameter_A:
Type: Number
Parameter_B:
Type: String
Parameter_C:
Type: String
NoEcho: True
Parameter_D:
Type:String
NoEcho: True
Now I would like to automatically create file that contains only NoEcho parameters, without doing it this way:
Resources:
MyInstance:
Type: AWS::EC2::Instance
Metadata:
AWS::CloudFormation::Init:
config:
files:
/tmp/some_file:
content: !Sub |
${Parameter_C}
${Parameter_D}
...
Expected output: File containing values of Parameter_C and Parameter_D
Expected output after adding NoEcho option to Parameter_A: File
containing values of Parameter_A, Parameter_C and Parameter_D
I cannot do it in UserData field.
Is there any way I can accomplish that?
Any help will be highly appreciated!
amazon-web-services amazon-ec2 amazon-cloudformation
add a comment |
up vote
0
down vote
favorite
I'm trying to fetch some parameters from CloudFormation and save them to file.
Example parameters:
Parameters:
Parameter_A:
Type: Number
Parameter_B:
Type: String
Parameter_C:
Type: String
NoEcho: True
Parameter_D:
Type:String
NoEcho: True
Now I would like to automatically create file that contains only NoEcho parameters, without doing it this way:
Resources:
MyInstance:
Type: AWS::EC2::Instance
Metadata:
AWS::CloudFormation::Init:
config:
files:
/tmp/some_file:
content: !Sub |
${Parameter_C}
${Parameter_D}
...
Expected output: File containing values of Parameter_C and Parameter_D
Expected output after adding NoEcho option to Parameter_A: File
containing values of Parameter_A, Parameter_C and Parameter_D
I cannot do it in UserData field.
Is there any way I can accomplish that?
Any help will be highly appreciated!
amazon-web-services amazon-ec2 amazon-cloudformation
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I'm trying to fetch some parameters from CloudFormation and save them to file.
Example parameters:
Parameters:
Parameter_A:
Type: Number
Parameter_B:
Type: String
Parameter_C:
Type: String
NoEcho: True
Parameter_D:
Type:String
NoEcho: True
Now I would like to automatically create file that contains only NoEcho parameters, without doing it this way:
Resources:
MyInstance:
Type: AWS::EC2::Instance
Metadata:
AWS::CloudFormation::Init:
config:
files:
/tmp/some_file:
content: !Sub |
${Parameter_C}
${Parameter_D}
...
Expected output: File containing values of Parameter_C and Parameter_D
Expected output after adding NoEcho option to Parameter_A: File
containing values of Parameter_A, Parameter_C and Parameter_D
I cannot do it in UserData field.
Is there any way I can accomplish that?
Any help will be highly appreciated!
amazon-web-services amazon-ec2 amazon-cloudformation
I'm trying to fetch some parameters from CloudFormation and save them to file.
Example parameters:
Parameters:
Parameter_A:
Type: Number
Parameter_B:
Type: String
Parameter_C:
Type: String
NoEcho: True
Parameter_D:
Type:String
NoEcho: True
Now I would like to automatically create file that contains only NoEcho parameters, without doing it this way:
Resources:
MyInstance:
Type: AWS::EC2::Instance
Metadata:
AWS::CloudFormation::Init:
config:
files:
/tmp/some_file:
content: !Sub |
${Parameter_C}
${Parameter_D}
...
Expected output: File containing values of Parameter_C and Parameter_D
Expected output after adding NoEcho option to Parameter_A: File
containing values of Parameter_A, Parameter_C and Parameter_D
I cannot do it in UserData field.
Is there any way I can accomplish that?
Any help will be highly appreciated!
amazon-web-services amazon-ec2 amazon-cloudformation
amazon-web-services amazon-ec2 amazon-cloudformation
edited Nov 20 at 9:29
asked Nov 19 at 14:57
Dawid Fieluba
800521
800521
add a comment |
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53377275%2fget-specific-parameters-from-cloudformation%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown