-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support
vendor.yaml
as a new way of vendoring components, stacks or…
… any other artifacts (#448) * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * Add `vendor.yaml` * update docs * update docs * update docs * update docs * update docs * update docs * update docs * update docs * update docs * update docs * update docs * update docs * update docs * update docs * Update examples/complete/vendor.yaml Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * Update examples/complete/vendor/vendor2.yaml Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * Update examples/complete/vendor/vendor5.yaml Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * Update examples/complete/vendor/vendor6.yaml Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * Update examples/complete/vendor/vendor3.yaml Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * Update examples/complete/vendor/vendor4.yaml Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * Update website/docs/cli/commands/vendor/vendor-pull.md Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * Update website/docs/core-concepts/vendoring/vendoring.md Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * update docs * update docs * update docs * updates * updates * updates * updates * Update website/docs/core-concepts/vendoring/vendoring.md Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]> * updates * updates * updates * updates * make file extensions of vendoring manifests optional, assume and use `.yaml` by default * make file extensions of vendoring manifests optional, assume and use `.yaml` by default --------- Co-authored-by: Erik Osterman (CEO @ Cloud Posse) <[email protected]>
- Loading branch information
Showing
49 changed files
with
1,324 additions
and
438 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
examples/complete/components/terraform/infra/vpc-flow-logs-bucket/main.tf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
apiVersion: atmos/v1 | ||
kind: AtmosVendorConfig | ||
metadata: | ||
name: example-vendor-config | ||
description: Atmos vendoring manifest | ||
spec: | ||
# `imports` or `sources` (or both) must be defined in a vendoring manifest | ||
imports: | ||
- "vendor/vendor2" | ||
- "vendor/vendor3.yaml" | ||
|
||
sources: | ||
# `source` supports the following protocols: OCI (https://opencontainers.org), Git, Mercurial, HTTP, HTTPS, Amazon S3, Google GCP, | ||
# and all URL and archive formats as described in https://github.com/hashicorp/go-getter. | ||
# In 'source', Golang templates are supported https://pkg.go.dev/text/template. | ||
# If 'version' is provided, '{{.Version}}' will be replaced with the 'version' value before pulling the files from 'source'. | ||
# Download the component from the AWS public ECR registry (https://docs.aws.amazon.com/AmazonECR/latest/public/public-registries.html). | ||
- component: "vpc" | ||
source: "oci://public.ecr.aws/cloudposse/components/terraform/stable/aws/vpc:{{.Version}}" | ||
version: "latest" | ||
targets: | ||
- "components/terraform/infra/vpc3" | ||
# Only include the files that match the 'included_paths' patterns. | ||
# If 'included_paths' is not specified, all files will be matched except those that match the patterns from 'excluded_paths'. | ||
# 'included_paths' support POSIX-style Globs for file names/paths (double-star `**` is supported). | ||
# https://en.wikipedia.org/wiki/Glob_(programming) | ||
# https://github.com/bmatcuk/doublestar#patterns | ||
included_paths: | ||
- "**/*.tf" | ||
- "**/*.tfvars" | ||
- "**/*.md" | ||
- component: "vpc-flow-logs-bucket" | ||
source: "github.com/cloudposse/terraform-aws-components.git//modules/vpc-flow-logs-bucket?ref={{.Version}}" | ||
version: "1.323.0" | ||
targets: | ||
- "components/terraform/infra/vpc-flow-logs-bucket/{{.Version}}" | ||
excluded_paths: | ||
- "**/*.yaml" | ||
- "**/*.yml" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
apiVersion: atmos/v1 | ||
kind: AtmosVendorConfig | ||
metadata: | ||
name: example-vendor-config-2 | ||
description: Atmos vendoring manifest | ||
spec: | ||
imports: | ||
- "vendor/vendor4" | ||
|
||
sources: | ||
- component: "my-vpc1" | ||
source: "oci://public.ecr.aws/cloudposse/components/terraform/stable/aws/vpc:{{.Version}}" | ||
version: "latest" | ||
targets: | ||
- "components/terraform/infra/my-vpc1" | ||
- component: "my-vpc2" | ||
source: "github.com/cloudposse/terraform-aws-components.git//modules/vpc?ref={{.Version}}" | ||
version: "1.320.0" | ||
targets: | ||
- "components/terraform/infra/my-vpc2" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
apiVersion: atmos/v1 | ||
kind: AtmosVendorConfig | ||
metadata: | ||
name: example-vendor-config-3 | ||
description: Atmos vendoring manifest | ||
spec: | ||
imports: | ||
- "vendor/vendor6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
apiVersion: atmos/v1 | ||
kind: AtmosVendorConfig | ||
metadata: | ||
name: example-vendor-config-4 | ||
description: Atmos vendoring manifest | ||
spec: | ||
imports: | ||
- "vendor/vendor5" | ||
|
||
sources: | ||
- component: "my-vpc4" | ||
source: "github.com/cloudposse/terraform-aws-components.git//modules/vpc?ref={{.Version}}" | ||
version: "1.319.0" | ||
targets: | ||
- "components/terraform/infra/my-vpc4" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: atmos/v1 | ||
kind: AtmosVendorConfig | ||
metadata: | ||
name: example-vendor-config-5 | ||
description: Atmos vendoring manifest | ||
spec: | ||
sources: | ||
- component: "my-vpc5" | ||
source: "github.com/cloudposse/terraform-aws-components.git//modules/vpc?ref={{.Version}}" | ||
version: "1.317.0" | ||
targets: | ||
- "components/terraform/infra/my-vpc5" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
apiVersion: atmos/v1 | ||
kind: AtmosVendorConfig | ||
metadata: | ||
name: example-vendor-config-6 | ||
description: Atmos vendoring manifest | ||
spec: | ||
sources: | ||
- component: "my-vpc6" | ||
source: "github.com/cloudposse/terraform-aws-components.git//modules/vpc?ref={{.Version}}" | ||
version: "1.315.0" | ||
targets: | ||
- "components/terraform/infra/my-vpc6" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.