I know how to use Here docs to run scripts on a newly launched instance such as
instance.addUserData(
bash << EOF
#!/usr/bin/bash
...
EOF,
);
but I do not not want to do this for configuration files since they are git managed.
So how do I include text files in a newly launched instance? Amazon seems to want you to use S3 according to the Assets documentation here https://docs.aws.amazon.com/cdk/latest/guide/assets.html but I think there should be a way in native CDK to do this I just can't find it in the API docs.