You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
First of all, thanks for a great helper tools - really useful and simple.
Recently I integrated ssm-run into Terraform, basically replacing SSH-based bootstrapping with Session Manager. This allows also to bootstrap completely private instances, without public IP or any jump host.
I am passing instance ID and bootstrap script to the ssm-init script:
And the ssm-init.sh script (not - totally not perfect, just a first version, but it works):
#!/bin/bash
instance=$1
script=$2whiletrue:do
result=$(ssm-run -i $instance -file $script -log-level 1 | grep "1 SUCCESS")if [ $?== 0 ];thenecho"Instance provisioned!"breakfiecho'SSM Sessions are not available yet. Sleeping for 5 seconds.'
sleep 5
done
As ssm-helpers are written in Go, it should be possible to integrate it as a provisioner in AWS provider for Terraform. Just an idea I thought I shall share here.
The text was updated successfully, but these errors were encountered:
First of all, thanks for a great helper tools - really useful and simple.
Recently I integrated
ssm-run
into Terraform, basically replacing SSH-based bootstrapping with Session Manager. This allows also to bootstrap completely private instances, without public IP or any jump host.I am passing instance ID and bootstrap script to the ssm-init script:
And the
ssm-init.sh
script (not - totally not perfect, just a first version, but it works):As ssm-helpers are written in Go, it should be possible to integrate it as a provisioner in AWS provider for Terraform. Just an idea I thought I shall share here.
The text was updated successfully, but these errors were encountered: