ec2pkg

package
v0.0.0-...-556d222 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 25, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EC2Config

type EC2Config struct {
	Region     string            `json:"region"`
	IAMUser    *entities.IAMUser `json:"iam_user,omitempty"`
	AssumeRole *string           `json:"assume_role_arn,omitempty"`
}

EC2Config defines service

type Service

type Service interface {
	ec2iface.EC2API
}

Service provide EC2 API from aws-sdk-go v1

func InitEC2SrvWithAssumeRole

func InitEC2SrvWithAssumeRole(ctx ctx.CTX, conf *EC2Config) Service

InitEC2SrvWithAssumeRole for new ec2 api with assume role

func InitialEC2Service

func InitialEC2Service(ctx ctx.CTX, region string) Service

InitialEC2Service based on default credentail

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL