I have a cloudformation template to deploy EKS and worker nodes along with several other resources like RDS, ES, etc.
I want to write a terraform template which does the same job as that of my cloudformation.
I am new to terraform and I got stuck with the userdata section of EKS worker nodes launch configuration.
The section in my cloudformation is:
UserData:
Fn::Base64:
!Sub |
#!/bin/bash
set -o xtrace
/etc/eks/bootstrap.sh ${AWS::StackName}-cluster
/opt/aws/bin/cfn-signal --exit-code $? \
--stack ${AWS::StackName} \
--resource SpotNodeGroup \
--region ${AWS::Region}
I want to replicate the same in terraform and I am not sure what is the equivalent for "/opt/aws/bin/cfn-signal " in terraform.
Any idea what I could use instead ?