cloudaccess

package
v2.2.1-rc0 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 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.CloudProviderIntegration) error

func CreateAWSIAMRole

func CreateAWSIAMRole(roleName string) (string, error)

func CreateRoles

func CreateRoles(roles []Role) error

func DeleteAWSIAMRoleByArn

func DeleteAWSIAMRoleByArn(arn string) error

func DeleteCloudProviderIntegrations added in v2.1.0

func DeleteCloudProviderIntegrations(roles []akov2.CloudProviderIntegration) []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 akov2.CloudProviderIntegration
}

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