1 réponse
- Le plus récent
- Le plus de votes
- La plupart des commentaires
0
- Here’s an example of how you would specify parameters in the component, as structured in the documentation:
schemaVersion: 1.0
description: Example EC2 Image Builder Component
parameters:
- Param1Value:
type: string
description: Param 1 Value
default: value-1
- Param2Value:
type: string
description: Param 2 Value
default: value-2
phases:
- name: build
steps:
- name: RunPowerShellScript
action: ExecutePowerShell
inputs:
commands:
- .\sample.ps1 -param1 {{Param1Value}} -param2 {{Param2Value}}
- How to pass sensitive parameters like password so that it is masked everywhere, including CloudWatch, Component screen and S3 bucket etc?
We do not recommend passing sensitive strings in component parameters, since they are stored in plaintext. Instead, you can do something like store the secrets in Secrets Manager and retrive them in your component's scripts, which can be done via AWS CLI in the component.
- Apart from String type, what other types are supported for Parameters?
Currently, string types are supported in Image Builder.
répondu il y a 10 mois
Contenus pertinents
- demandé il y a 7 mois
- demandé il y a un an
- demandé il y a un an
- AWS OFFICIELA mis à jour il y a un an
- AWS OFFICIELA mis à jour il y a 2 ans
- AWS OFFICIELA mis à jour il y a 9 mois
- AWS OFFICIELA mis à jour il y a 2 ans
Thank you. I figured these out a couple of days ago. Also, for sensitive values, I am retrieving them from Secret Manager.