#cloud-config
password: osm4u
chpasswd: { expire: False }
ssh_pwauth: True
write_files:
-   encoding: b64
    permissions: '0600'
    path: /home/ubuntu/test4.pem
    content: LS0tLS1CRUdJTiBSU0EgUFJJVkFURSBLRVktLS0tLQpNSUlFcEFJQkFBS0NBUUVBMTJGVDh5Q09wY0F2NFc5VHg3SUNYSDlkWm1DaU5hUkhoODNJMFBGL0QrMk1EbzlvCm9ZcEljdWlFYlp0L0I4eis3blRGbzBLSlQxR3lNelFacFhiZkg4dWhCWkdSS1grMGQwTTRnMjZzTnhSK3NDRzAKSnk2UW1WbXZUZ2hrY2o4ajNRV1AveXRHR3VXL3lBWHh1TGZpcUNGY0pDYmtodnFHRVJvUW1JWndNRVdmeUZNTQpZYld6VmJFdHVzRGZveHJHbENpRmdoQVcwdVhIQlhtL1pOM3FMeUJaQkN6UXlWVmxTYklkcmNocTFIZmgwTmZzClVCclFWSEo0cVNWZStaY0M5bWRxNmE1ekNDTGxYUGdOYlV6VmdLeDNIQzBzbjhYOXBBRGN1WXhncE1EUUI5UkUKNmQ2L0FPUVlLQldIZXpVaThTdDZHOTE4bkY3Mkw3ZjF6SzFBendJREFRQUJBb0lCQUc3bU5ZUzlvZFdrMU1LZQpRU1JVK3pSSGZIOG5pTDVZSFdER3kvMFNMQnUyYytSWFlVZTBYVU9WaUFLc0MwZW4vU2dwUms2ZkJ2YXBtVGtXClBaSmVWOXNXVFk0QmV4NUVIRmRBYkl2NFk0Sms4aXFjNEJkQXVjSE1WU0MzMzRpWURFNVUrK1Vta2cxdGVVZDAKRUJmTnowNUZCeDJ5VFA5WFpjck9nZmNYV2hMd0JObWQ5OStnVjZjUUI2TkYwWkZWbTZUTHVBN2dIM2pveWlwaQpLZmhvZDd1b25GUlZYU2c2dmlwWHMzK29INkJrcGdZeFE1RUM5VTIxcTdZUzQvSDVueUJKRFF5bWY4OEx2bTBsCklrWmFzS0M4UktrSEp1cFJPeVVVck9SVzBuNlpWNVAzalBDdHNhdi9uNlFJUVN0cUN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WDRSQllFQmNnNnlDQ3ExZm8KZ3YwT0JxTmUxTDcyTFdoSTZvSTJxbEtQdmVOMWZkaDBqc0F2UHBRcGNlLzE2WTBmN3hzbDVOM3VwcCt5SEhOawp4cnVET0c3bnBTQ3lIS2ZjUWpEdGFIT1BLWWlRLzNDdVhwN09KT3ZqYk5aRmYwR0paQTlYUUE9PQotLS0tLUVORCBSU0EgUFJJVkFURSBLRVktLS0tLQo=
-   content: |
        # My new helloworld file

    owner: root:root
    permissions: '0644'
    path: /root/helloworld.txt
runcmd:
-   [ sh, -c, "chown ubuntu:ubuntu /home/ubuntu/test4.pem" ]

