Chapter 6
- The
cfn-init
helper script processes these configuration sections in the following order: packages, groups, users, sources, files, commands, and then services. - Yes, and it is recommended to do so for complex configurations or to run configuration items in a different order.
- No. Only one configuration set can be provided.
- Not using the
files
directive in the config set. You will have to use thecommands
directive, but it is possible to add a missing directory to the full path of the file, andcfn-init
will automatically create it (similar to themkdir -
p
command). WaitCondition
is a CloudFormation resource that is used to make CloudFormation wait for resource completion. For example, you can useWaitCondition
withcfn-signal
to make CloudFormation inform the users about resource creation only whencfn-init
has finished running.