cloudaccess

package
v1.9.3 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddAtlasStatementToAWSIAMRole

func AddAtlasStatementToAWSIAMRole(atlasAWSAccountArn, atlasAssumedRoleExternalId, roleName string) error

func AddAtlasStatementToRole

func AddAtlasStatementToRole(roles []Role, roleStatuses []status.CloudProviderAccessRole) error

func CreateAWSIAMRole

func CreateAWSIAMRole(roleName string) (string, error)

func CreateRoles

func CreateRoles(roles []Role) error

func DeleteAWSIAMRoleByArn

func DeleteAWSIAMRoleByArn(arn string) error

func DeleteRoles

func DeleteRoles(roles []v1.CloudProviderAccessRole) []error

func EC2RolePolicyString

func EC2RolePolicyString() (string, error)

func NameFromArn

func NameFromArn(arn string) string

func PolicyWithAtlasArn

func PolicyWithAtlasArn(atlasAWSAccountArn, atlasAssumedRoleExternalId string) (string, error)

Types

type AssumeRolePolicyDocument

type AssumeRolePolicyDocument struct {
	Version   string      `json:"Version"`
	Statement []Statement `json:"Statement"`
}

type Condition

type Condition struct {
	StringEquals StringEquals `json:"StringEquals,omitempty"`
}

type Principal

type Principal struct {
	AWS     string `json:"AWS,omitempty"`
	Service string `json:"Service,omitempty"`
}

type Role

type Role struct {
	Name       string
	AccessRole v1.CloudProviderAccessRole
}

type Statement

type Statement struct {
	Effect    string    `json:"Effect"`
	Principal Principal `json:"Principal"`
	Action    string    `json:"Action"`
	Condition Condition `json:"Condition,omitempty"`
}

type StringEquals

type StringEquals struct {
	StsExternalId string `json:"sts:ExternalId,omitempty"`
}

Jump to

Keyboard shortcuts

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