Documentation
¶
Index ¶
- func ErrCode(msg string, err error) error
- type IAM
- func (i *IAM) CreateRole(ctx context.Context, input *iam.CreateRoleInput) (*iam.Role, error)
- func (i *IAM) DefaultTaskExecutionPolicy(path string) ([]byte, error)
- func (i *IAM) DefaultTaskExecutionRole(ctx context.Context, path string) (string, error)
- func (i *IAM) DeleteRole(ctx context.Context, input *iam.DeleteRoleInput) error
- func (i *IAM) GetRole(ctx context.Context, input *iam.GetRoleInput) (*iam.Role, error)
- func (i *IAM) PutRolePolicy(ctx context.Context, input *iam.PutRolePolicyInput) error
- type PolicyDoc
- type PolicyStatement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IAM ¶
IAM is a wrapper around the aws IAM service with some default config info
func (*IAM) CreateRole ¶
CreateRole handles creating an IAM role
func (*IAM) DefaultTaskExecutionPolicy ¶
DefaultTaskExecutionPolicy generates the default policy for ECS task execution
func (*IAM) DefaultTaskExecutionRole ¶
DefaultTaskExecutionRole generates the default role (if it doesn't exist) for ECS task execution and returns the ARN
func (*IAM) DeleteRole ¶
DeleteRole handles deleting an IAM role
func (*IAM) PutRolePolicy ¶
PutRolePolicy handles attaching an inline policy to IAM role
type PolicyDoc ¶
type PolicyDoc struct { Version string Statement []PolicyStatement }
PolicyDoc collects the policy statements
Click to show internal directories.
Click to hide internal directories.