Documentation ¶
Index ¶
- func AmiPlatformIsWindows(sess *session.Session, ami string) (bool, error)
- func AttachIAMPolicyToRole(sess *session.Session, policyArn string) error
- func AuthorizeSecurityGroup(sess *session.Session, security_group_id string, ...) error
- func BuildLinuxUserdata(sshKey string, sshUser string, expire bool, expireAfter int, efs string, ...) string
- func BuildWindowsUserdata() string
- func CheckRequirements(c *cli.Context) error
- func CmdLaunchLinuxBastion(c *cli.Context) error
- func CmdLaunchWindowsBastion(c *cli.Context) error
- func CmdStartRemotePortForwardSession(c *cli.Context) error
- func CmdStartSession(c *cli.Context) error
- func CmdTerminateInstance(c *cli.Context) error
- func CopyPasswordToClipBoard(password string)
- func CreateBastion(c *cli.Context) (string, string, error)
- func CreateIAMInstanceProfile(sess *session.Session) error
- func CreateIAMPolicy(sess *session.Session) (string, error)
- func CreateIAMRequirementsIfNotExist(sess *session.Session) error
- func CreateIAMRole(sess *session.Session) error
- func CreateKeyPair(sess *session.Session, id string) (string, string, error)
- func DecodePassword(keypair string, passwordData string) (string, error)
- func DeleteKeyPair(sess *session.Session, id string) error
- func DeleteKeyPairParameter(sess *session.Session, parameterName string) error
- func EnrichInstancesDetail(sess *session.Session, instances []*string) ([]string, error)
- func GenerateSessionId() string
- func GetAmiFromParameter(sess *session.Session, parameter string) (string, error)
- func GetAndValidateAmi(sess *session.Session, input string, instance_type string) (string, error)
- func GetArchitecture(sess *session.Session, instance_type string) (string, error)
- func GetDefaultKeyPairParameterName(sessionId string) string
- func GetIAMInstanceProfile(sess *session.Session) (string, error)
- func GetInstanceIdBySessionId(sess *session.Session, sessionId string) (string, error)
- func GetKeyPairName(sessionId string) string
- func GetKeyPairParameter(sess *session.Session, parameterName string) (string, error)
- func GetRdsSecurityGroupId(sess *session.Session, rds_instance string) (string, error)
- func GetSecurityGroups(sess *session.Session, vpcId string) ([]securitygroup, error)
- func GetSessionIdFromInstance(sess *session.Session, instanceId string) (string, error)
- func GetStartSessionPayload(sess *session.Session, input *ssm.StartSessionInput) (*ssm.StartSessionOutput, string, error)
- func GetSubnet(sess *session.Session, subnetId string) (subnet, error)
- func GetSubnets(sess *session.Session) ([]subnet, error)
- func GetTagValue(tags []*ec2.Tag, key string) string
- func GetWindowsPasswordData(sess *session.Session, instanceId string) (string, error)
- func IAMInstanceProfileExists(sess *session.Session) (bool, error)
- func LookupSSMManagedInstances(sess *session.Session) ([]*string, error)
- func LookupUserIdentity(sess *session.Session) (string, error)
- func PutKeyPairParameter(sess *session.Session, parameterName string, value string) error
- func ReadAndValidatePublicKey(filePath string) (string, error)
- func RevertSecurityGroup(sess *session.Session, security_group_id string, ...) error
- func RunSubprocess(process string, args ...string) error
- func SelectInstance(sess *session.Session) (string, error)
- func SelectRDSInstance(sess *session.Session) (string, string, error)
- func SelectSecurityGroup(securitygroups []securitygroup) securitygroup
- func SelectSubnet(subnets []subnet) subnet
- func SetupAWSSession(region string, profile string) *session.Session
- func StartEc2(id string, sess *session.Session, ami string, instanceProfile string, ...) (string, error)
- func StartRDPSession(sess *session.Session, instanceId string, localRdpPort int, awsProfile string) error
- func StartSSHSession(sess *session.Session, instanceId string, sshUser string, sshOpts string, ...) error
- func StartSession(sess *session.Session, instanceId string, awsProfile string) error
- func TerminateEC2(sess *session.Session, instanceId string) error
- func TerminateSession(sess *session.Session, sessionId string) error
- func ValidAmi(ami string) bool
- func WaitForBastionStatusOK(sess *session.Session, instanceId string) error
- func WaitForBastionToRun(sess *session.Session, instanceId string) error
- func WaitForInstanceProfileToCreate(sess *session.Session) error
- func WaitForWindowsBastionPassword(sess *session.Session, instanceId string) error
- type AssumeRolePolicyDocument
- type AssumeRoleStatementEntry
- type PolicyDocument
- type PolicyStatementEntry
- type Principal
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AmiPlatformIsWindows ¶
func AttachIAMPolicyToRole ¶
func AuthorizeSecurityGroup ¶
func BuildLinuxUserdata ¶
func BuildWindowsUserdata ¶
func BuildWindowsUserdata() string
func CheckRequirements ¶
func CheckRequirements(c *cli.Context) error
func CmdLaunchLinuxBastion ¶
func CmdLaunchLinuxBastion(c *cli.Context) error
func CmdLaunchWindowsBastion ¶
func CmdLaunchWindowsBastion(c *cli.Context) error
func CmdStartRemotePortForwardSession ¶
func CmdStartRemotePortForwardSession(c *cli.Context) error
func CmdStartSession ¶
func CmdStartSession(c *cli.Context) error
func CmdTerminateInstance ¶
func CmdTerminateInstance(c *cli.Context) error
func CopyPasswordToClipBoard ¶
func CopyPasswordToClipBoard(password string)
func CreateBastion ¶
func CreateIAMRole ¶
func DeleteKeyPairParameter ¶
func EnrichInstancesDetail ¶
func GenerateSessionId ¶
func GenerateSessionId() string
func GetAmiFromParameter ¶
func GetAndValidateAmi ¶
func GetArchitecture ¶
Get all supported architectures for current instance type
func GetKeyPairName ¶
func GetKeyPairParameter ¶
func GetRdsSecurityGroupId ¶
func GetSecurityGroups ¶
func GetStartSessionPayload ¶
func GetStartSessionPayload(sess *session.Session, input *ssm.StartSessionInput) (*ssm.StartSessionOutput, string, error)
func GetSubnets ¶
func GetWindowsPasswordData ¶
func PutKeyPairParameter ¶
func RevertSecurityGroup ¶
func RunSubprocess ¶
func SelectSecurityGroup ¶
func SelectSecurityGroup(securitygroups []securitygroup) securitygroup
func SelectSubnet ¶
func SelectSubnet(subnets []subnet) subnet
func StartRDPSession ¶
func StartSSHSession ¶
func StartSession ¶
func WaitForBastionStatusOK ¶
Types ¶
type AssumeRolePolicyDocument ¶
type AssumeRolePolicyDocument struct { Version string Statement []AssumeRoleStatementEntry }
type PolicyDocument ¶
type PolicyDocument struct { Version string Statement []PolicyStatementEntry }
type PolicyStatementEntry ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.