CodeShare
Have some code. Share some code.
cancel
Showing results for 
Search instead for 
Did you mean: 
Marek_228998
Historic F5 Account

Problem this snippet solves:

Terraform template - AWS Cloud-Init

Code :

#cloud-config
# 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.

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

runcmd:
-   chmod 755 /root/example
-   /root/example
-   [ /root/example ]
Version history
Last update:
‎29-Sep-2016 01:06
Updated by:
Contributors