-
-
Notifications
You must be signed in to change notification settings - Fork 107
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
push reset to git reset --soft 15bad9a
- Loading branch information
1 parent
15bad9a
commit 063f955
Showing
14 changed files
with
408 additions
and
9 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
base_path: "./" | ||
|
||
components: | ||
terraform: | ||
base_path: "components/terraform" | ||
apply_auto_approve: false | ||
deploy_run_init: true | ||
init_run_reconfigure: true | ||
auto_generate_backend_file: false | ||
|
||
stacks: | ||
base_path: "stacks" | ||
included_paths: | ||
- "deploy/**/*" | ||
excluded_paths: | ||
- "**/_defaults.yaml" | ||
name_pattern: "{stage}" | ||
|
||
vendor: | ||
# Single file | ||
base_path: "./vendor.yaml" | ||
|
||
# Directory with multiple files | ||
#base_path: "./vendor" | ||
|
||
# Absolute path | ||
#base_path: "vendor.d/vendor1.yaml" | ||
|
||
logs: | ||
file: "/dev/stderr" | ||
level: Info | ||
|
||
# Custom CLI commands | ||
|
||
# No arguments or flags are required | ||
commands: | ||
- name: "test" | ||
description: "Run all tests" | ||
steps: | ||
- atmos vendor pull --everything |
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,13 @@ | ||
# Example Terraform IPinfo Component | ||
|
||
This Terraform module retrieves data from the IPinfo API for a specified IP address. If no IP address is specified, it retrieves data for the requester's IP address. | ||
|
||
## Usage | ||
|
||
### Inputs | ||
|
||
- `ip_address` (optional): The IP address to retrieve information for. If not specified, the requester's IP address will be used. The default value is an empty string. | ||
|
||
### Outputs | ||
|
||
- `metadata`: The data retrieved from IPinfo for the specified IP address, in JSON format. |
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,7 @@ | ||
data "http" "ipinfo" { | ||
url = var.ip_address != "" ? "https://ipinfo.io/${var.ip_address}" : "https://ipinfo.io" | ||
|
||
request_headers = { | ||
Accept = "application/json" | ||
} | ||
} |
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,4 @@ | ||
output "metadata" { | ||
description = "The data retrieved from IPinfo for the specified IP address" | ||
value = jsondecode(data.http.ipinfo.response_body) | ||
} |
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 @@ | ||
provider "http" {} |
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,5 @@ | ||
variable "ip_address" { | ||
description = "The IP address to retrieve information for (optional)" | ||
type = string | ||
default = "" | ||
} |
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,5 @@ | ||
terraform { | ||
required_version = ">= 1.0.0" | ||
|
||
required_providers {} | ||
} |
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,43 @@ | ||
apiVersion: atmos/v1 | ||
kind: AtmosVendorConfig | ||
metadata: | ||
name: demo-vendoring | ||
description: Atmos vendoring manifest for Atmos demo component library | ||
spec: | ||
# Import other vendor manifests, if necessary | ||
imports: [] | ||
|
||
sources: | ||
- component: "github/stargazers" | ||
source: "github.com/cloudposse/atmos.git//examples/demo-library/{{ .Component }}?ref={{.Version}}" | ||
version: "main" | ||
targets: | ||
- "components/terraform/{{ .Component }}/{{.Version}}" | ||
included_paths: | ||
- "**/*.tf" | ||
- "**/*.tfvars" | ||
- "**/*.md" | ||
tags: | ||
- demo | ||
- github | ||
|
||
- component: "test-components" | ||
source: "file:///./test-components" | ||
version: "main" | ||
targets: | ||
- "components/terraform/{{ .Component }}/{{.Version}}" | ||
tags: | ||
- demo | ||
|
||
- component: "weather" | ||
source: "git::https://github.com/cloudposse/atmos.git//examples/demo-library/{{ .Component }}?ref={{.Version}}" | ||
version: "main" | ||
targets: | ||
- "components/terraform/{{ .Component }}/{{.Version}}" | ||
tags: | ||
- demo | ||
- component: "my-vpc1" | ||
source: "oci://public.ecr.aws/cloudposse/components/terraform/stable/aws/vpc:{{.Version}}" | ||
version: "latest" | ||
targets: | ||
- "components/terraform/infra/my-vpc1" |
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
Oops, something went wrong.