Skip to content

Conversation

@ehsaniara
Copy link
Owner

Summary

  • Add parametric storage backend selection to AWS deployment scripts
  • pre-setup.sh now accepts --storage flag to configure IAM permissions for the selected backend (cloudwatch, s3, local)
  • ec2-user-data.sh now accepts command-line arguments (--storage, --s3-bucket, etc.) for cleaner User Data scripts
  • S3 IAM permissions are automatically configured when using --storage=s3

Changes

scripts/aws/pre-setup.sh

  • Add --storage=TYPE parameter (cloudwatch, s3, local)
  • Add --s3-bucket=NAME parameter with interactive prompt if not provided
  • IAM policy dynamically includes storage-specific permissions
  • S3 permissions scoped to the specified bucket

scripts/ec2-user-data.sh

  • Add command-line argument parsing (--storage, --s3-bucket, --s3-prefix, --s3-class, --version, --port)
  • Add --help flag with usage documentation
  • Backward compatible with environment variables

@ehsaniara ehsaniara self-assigned this Jan 5, 2026
@ehsaniara ehsaniara merged commit 0ad1435 into main Jan 5, 2026
10 checks passed
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

Successfully merging this pull request may close these issues.

2 participants