ssm

package
v2.1.3 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2023 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	SSMClient ssmiface.SSMAPI
	// contains filtered or unexported fields
}

Service holds a collection of interfaces. The interfaces are broken down like this to group functions together. One alternative is to have a large list of functions from the ec2 client.

func NewService

func NewService(secretsScope cloud.ClusterScoper) *Service

NewService returns a new service given the api clients.

func (*Service) Create

func (s *Service) Create(m *scope.MachineScope, data []byte) (string, int32, error)

Create stores data in AWS SSM for a given machine, chunking at 4kb per secret. The prefix of the secret ARN and the number of chunks are returned.

func (*Service) Delete

func (s *Service) Delete(m *scope.MachineScope) error

Delete the secret belonging to a machine from AWS SSM.

func (*Service) UserData

func (s *Service) UserData(secretPrefix string, chunks int32, region string, endpoints []scope.ServiceEndpoint) ([]byte, error)

UserData creates a multi-part MIME document including a script boothook to download userdata from AWS Systems Manager and then restart cloud-init, and an include part specifying the on disk location of the new userdata.

Directories

Path Synopsis
Package mock_ssmiface is a generated GoMock package.
Package mock_ssmiface is a generated GoMock package.

Jump to

Keyboard shortcuts

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