I am looking at using user_data during my aws/azure provisioning,
looking at the APIs, i am able to pass a script and execute it.
is the user data wrapped in cdata sections automatically, would complex scripts be valid with out cdata ?
No, user data is base64 encoded by the ansible modules.
Any limitations are defined by the cloud provider, for instance
https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html#instancedata-add-user-data
What do you mean by “complex scripts”?
I don’t see what CDATA sections have to do with this? As that’s an XML specific construct and XML isn’t involved?
Dick