bootstrap

package
v0.4.7 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cli.Command{
	Name: "bootstrap",
	Description: `The bootstrap command will create a cloudformation stack that deploys an S3 bucket in your account and return the bucket name.
Bootstrapping is required because Cloudformation requires that resources from S3 be in the same region as the cloudfromation stack.
When deploying a provider you must first copy the provider resources from the Provider Registry to your AWS account in the region that you will be deploying the provider.`,
	Usage: "Bootstrap your AWS account to deploy a provider",

	Action: func(c *cli.Context) error {
		ctx := c.Context
		awsContext, err := middleware.AWSContextFromContext(ctx)
		if err != nil {
			return err
		}
		bs := bootstrapper.NewFromConfig(awsContext.Config)
		if err != nil {
			return err
		}

		bucket, err := bs.GetOrDeployBootstrapBucket(ctx)
		if err != nil {
			return err
		}
		clio.Successf("bootstrap bucket created: %s", bucket.AssetsBucket)
		return nil
	},
}

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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