├── .gitignore ├── LICENSE ├── README.md ├── docs ├── aws-entities-1.png ├── aws-entities-2.png └── sequence.png ├── ec2_simple ├── Makefile ├── aws.tf ├── ec2.tf ├── files │ ├── authorized_keys_command.sh │ ├── import_users.cron │ ├── import_users.sh │ └── install.sh ├── iam.tf ├── resources │ ├── iam_assume_role_policy.json │ └── iam_role_policy.template.json ├── secret.sample.tfvars ├── security.tf └── variables.tf ├── ec2_simple_nokey ├── Makefile ├── aws.tf ├── ec2.tf ├── files │ ├── authorized_keys_command.sh │ ├── import_users.cron │ ├── import_users.sh │ └── install.sh ├── iam.tf ├── resources │ ├── iam_assume_role_policy.json │ ├── iam_role_policy.template.json │ └── instance_user_data.sh ├── secret.sample.tfvars ├── security.tf └── variables.tf ├── ec2_vpc ├── Makefile ├── aws.tf ├── ec2.tf ├── files │ ├── authorized_keys_command.sh │ ├── import_users.cron │ ├── import_users.sh │ └── install.sh ├── iam.tf ├── resources │ ├── iam_assume_role_policy.json │ └── iam_role_policy.template.json ├── secret.sample.tfvars ├── security.tf └── variables.tf └── ec2_vpc_nokey ├── Makefile ├── aws.tf ├── ec2.tf ├── files ├── authorized_keys_command.sh ├── import_users.cron ├── import_users.sh └── install.sh ├── iam.tf ├── resources ├── iam_assume_role_policy.json ├── iam_role_policy.template.json └── instance_user_data.sh ├── secret.sample.tfvars ├── security.tf └── variables.tf /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/.gitignore -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/README.md -------------------------------------------------------------------------------- /docs/aws-entities-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/docs/aws-entities-1.png -------------------------------------------------------------------------------- /docs/aws-entities-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/docs/aws-entities-2.png -------------------------------------------------------------------------------- /docs/sequence.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/docs/sequence.png -------------------------------------------------------------------------------- /ec2_simple/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/Makefile -------------------------------------------------------------------------------- /ec2_simple/aws.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/aws.tf -------------------------------------------------------------------------------- /ec2_simple/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/ec2.tf -------------------------------------------------------------------------------- /ec2_simple/files/authorized_keys_command.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/files/authorized_keys_command.sh -------------------------------------------------------------------------------- /ec2_simple/files/import_users.cron: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/files/import_users.cron -------------------------------------------------------------------------------- /ec2_simple/files/import_users.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/files/import_users.sh -------------------------------------------------------------------------------- /ec2_simple/files/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/files/install.sh -------------------------------------------------------------------------------- /ec2_simple/iam.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/iam.tf -------------------------------------------------------------------------------- /ec2_simple/resources/iam_assume_role_policy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/resources/iam_assume_role_policy.json -------------------------------------------------------------------------------- /ec2_simple/resources/iam_role_policy.template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/resources/iam_role_policy.template.json -------------------------------------------------------------------------------- /ec2_simple/secret.sample.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/secret.sample.tfvars -------------------------------------------------------------------------------- /ec2_simple/security.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/security.tf -------------------------------------------------------------------------------- /ec2_simple/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple/variables.tf -------------------------------------------------------------------------------- /ec2_simple_nokey/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/Makefile -------------------------------------------------------------------------------- /ec2_simple_nokey/aws.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/aws.tf -------------------------------------------------------------------------------- /ec2_simple_nokey/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/ec2.tf -------------------------------------------------------------------------------- /ec2_simple_nokey/files/authorized_keys_command.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/files/authorized_keys_command.sh -------------------------------------------------------------------------------- /ec2_simple_nokey/files/import_users.cron: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/files/import_users.cron -------------------------------------------------------------------------------- /ec2_simple_nokey/files/import_users.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/files/import_users.sh -------------------------------------------------------------------------------- /ec2_simple_nokey/files/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/files/install.sh -------------------------------------------------------------------------------- /ec2_simple_nokey/iam.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/iam.tf -------------------------------------------------------------------------------- /ec2_simple_nokey/resources/iam_assume_role_policy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/resources/iam_assume_role_policy.json -------------------------------------------------------------------------------- /ec2_simple_nokey/resources/iam_role_policy.template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/resources/iam_role_policy.template.json -------------------------------------------------------------------------------- /ec2_simple_nokey/resources/instance_user_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/resources/instance_user_data.sh -------------------------------------------------------------------------------- /ec2_simple_nokey/secret.sample.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/secret.sample.tfvars -------------------------------------------------------------------------------- /ec2_simple_nokey/security.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/security.tf -------------------------------------------------------------------------------- /ec2_simple_nokey/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_simple_nokey/variables.tf -------------------------------------------------------------------------------- /ec2_vpc/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/Makefile -------------------------------------------------------------------------------- /ec2_vpc/aws.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/aws.tf -------------------------------------------------------------------------------- /ec2_vpc/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/ec2.tf -------------------------------------------------------------------------------- /ec2_vpc/files/authorized_keys_command.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/files/authorized_keys_command.sh -------------------------------------------------------------------------------- /ec2_vpc/files/import_users.cron: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/files/import_users.cron -------------------------------------------------------------------------------- /ec2_vpc/files/import_users.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/files/import_users.sh -------------------------------------------------------------------------------- /ec2_vpc/files/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/files/install.sh -------------------------------------------------------------------------------- /ec2_vpc/iam.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/iam.tf -------------------------------------------------------------------------------- /ec2_vpc/resources/iam_assume_role_policy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/resources/iam_assume_role_policy.json -------------------------------------------------------------------------------- /ec2_vpc/resources/iam_role_policy.template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/resources/iam_role_policy.template.json -------------------------------------------------------------------------------- /ec2_vpc/secret.sample.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/secret.sample.tfvars -------------------------------------------------------------------------------- /ec2_vpc/security.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/security.tf -------------------------------------------------------------------------------- /ec2_vpc/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc/variables.tf -------------------------------------------------------------------------------- /ec2_vpc_nokey/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/Makefile -------------------------------------------------------------------------------- /ec2_vpc_nokey/aws.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/aws.tf -------------------------------------------------------------------------------- /ec2_vpc_nokey/ec2.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/ec2.tf -------------------------------------------------------------------------------- /ec2_vpc_nokey/files/authorized_keys_command.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/files/authorized_keys_command.sh -------------------------------------------------------------------------------- /ec2_vpc_nokey/files/import_users.cron: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/files/import_users.cron -------------------------------------------------------------------------------- /ec2_vpc_nokey/files/import_users.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/files/import_users.sh -------------------------------------------------------------------------------- /ec2_vpc_nokey/files/install.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/files/install.sh -------------------------------------------------------------------------------- /ec2_vpc_nokey/iam.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/iam.tf -------------------------------------------------------------------------------- /ec2_vpc_nokey/resources/iam_assume_role_policy.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/resources/iam_assume_role_policy.json -------------------------------------------------------------------------------- /ec2_vpc_nokey/resources/iam_role_policy.template.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/resources/iam_role_policy.template.json -------------------------------------------------------------------------------- /ec2_vpc_nokey/resources/instance_user_data.sh: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/resources/instance_user_data.sh -------------------------------------------------------------------------------- /ec2_vpc_nokey/secret.sample.tfvars: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/secret.sample.tfvars -------------------------------------------------------------------------------- /ec2_vpc_nokey/security.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/security.tf -------------------------------------------------------------------------------- /ec2_vpc_nokey/variables.tf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sportebois/aws-ec2-ssh-sync/HEAD/ec2_vpc_nokey/variables.tf --------------------------------------------------------------------------------