Documentation ¶
Index ¶
- func CreateSSHKeyPair(sess *session.Session, keyPairName string) (string, error)
- func CreateSecurityGroup(svc *ec2.EC2, groupName, description, userIP string) (*ec2.CreateSecurityGroupOutput, error)
- func CreateSecurityGroupAndRule(sess *session.Session, groupName, description, ip string) (string, error)
- func InitAWSSession(accessKey, secretKey, region string) *session.Session
- func KeyPairExists(svc *ec2.EC2, keyPairName string) (bool, error)
- func LaunchEC2Instance(sess *session.Session, instanceType, region, keyPairName string) (string, error)
- func PrepareUserDataScript() (string, error)
- func SavePrivateKeyToFile(privateKey, filename string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSSHKeyPair ¶
func CreateSecurityGroup ¶
func CreateSecurityGroup(svc *ec2.EC2, groupName, description, userIP string) (*ec2.CreateSecurityGroupOutput, error)
CreateSecurityGroup creates a new security group that allows incoming traffic from the user's IP.
func InitAWSSession ¶
initAWSSession initializes an AWS session with the given credentials.
func LaunchEC2Instance ¶
func LaunchEC2Instance(sess *session.Session, instanceType, region, keyPairName string) (string, error)
launchEC2Instance launches an EC2 instance with the given parameters.
func PrepareUserDataScript ¶
prepareUserDataScript reads the embedded user data script.
func SavePrivateKeyToFile ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.