Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ Enhancement ] Add alternative flow for shifting files from TF project to Tower host #94

Open
gwright99 opened this issue Jun 25, 2024 · 0 comments

Comments

@gwright99
Copy link
Collaborator

A recent client deployment encountered issues using the installer because their TF project needs to run on non-self-hosted Github runners which do not seem to have the requisite access privileges to configure the necessary ssh_config.

We have been asked if it is possible to modify the file deployment flow such that the TF installer can push the files to another storage medium (e.g. S3) and then have the VM itself pull and execute files from that same location.

A preliminary design being mooted is to have an extra peer flag to flag_vm_copy_files_to_instance. If this peer flag is set:

  • The generated target folder will be pushed to S3.
  • The TF installer will ensure the IAM Role assigned to the EC2 instance has the necessary S3 R/W rights.
  • The EC2 VM init script will be modified to copy the file from S3 to itself.
  • The copied files will be executed in order.

Further thought required before action to ensure there aren't any other gotchas to identify mitigate before starting work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant