Terraform template - AWS Cloud-Init

Problem this snippet solves:

Terraform template - AWS Cloud-Init

Code :

# vim: syntax=yaml
# This is the configuration syntax that the write_files module
# will know how to understand. encoding can be given b64 or gzip or (gz+b64).
# The content will be decoded accordingly and then written to the path that is
# provided. 
# Note: Content strings here are truncated for example purposes.

-   content: |
        /usr/bin/tmsh modify auth user admin shell bash
        echo "Executed!" >> /root/example
    path: /root/example

-   chmod 755 /root/example
-   /root/example
-   [ /root/example ]
Published Sep 29, 2016
Version 1.0

Was this article helpful?

No CommentsBe the first to comment