I need to store some files for my CF template (GraphQL schema, Lambda source, etc) into an S3 bucket that will also (hopefully) be defined in the same template, as that seems to be the only way outside of dropping the contents directly into the template to do it. I am also trying to think ahead to CI/CD, and it would be nice to have these files checked in and the CI/CD tool move them as appropriately.
Is there a way to copy files to S3 from the template? How do most people do it with CI/CD?