I have this in my user data in the launch configuration for the EC2 for a realtime config update:
# Update TFE config cat > update-config.sh << \'EOF