nf backend bootstrap
Create the resources of the state backend the settings choose: for S3, the bucket (with versioning and encryption) and the DynamoDB lock table.
Synopsis
nf backend bootstrap [OPTIONS]
Options
--force/--no-force: create resources even when they may already exist--dry-run/--no-dry-run: show what it would do without creating anything--tag KEY=VALUE: tag the resources created; repeat for more--aws-provider-version VERSION: the hashicorp/aws version to bootstrap S3 with (default: the newest cached, else the latest)
Behavior
The backend is the one the settings choose (see nf backend). Possible outcomes:
- its resources already exist
- bootstrapping is skipped or unsupported (a local backend needs nothing)
- a dry-run summary
- new resources are created
Examples
nf backend bootstrap --dry-run
nf backend bootstrap --tag Team=platform --tag CostCenter=infra
nf --backend-type s3 --backend-s3-bucket acme-nf-state --backend-s3-region us-east-1 backend bootstrap