-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
The previous module was overly restrictive, by assuming that a caller would always want to know only the CodeUri of a few functions. Make the base module more generic: given an asset and a version, return the body. The primary value the module provides is to give us a consistent default version.
- Loading branch information
Showing
11 changed files
with
45 additions
and
49 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# SAM Asset | ||
|
||
This is a helper module to retrieve objects for a given release version from | ||
https://github.com/observeinc/aws-sam-apps. | ||
|
||
If no `release_version` is provided, we will default to a hard-coded value | ||
which is maintained up to date by `updatecli`. This ensures that a given | ||
terraform module release produces the same behavior across time. | ||
|
||
## Usage | ||
|
||
```hcl | ||
module "sam_asset" { | ||
source = "observeinc/collection/aws//modules/sam_asset" | ||
asset = "forwarder.yaml" | ||
release_version = "1.19.3" | ||
} | ||
``` |
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,4 @@ | ||
output "body" { | ||
description = "Response body" | ||
value = data.http.manifest.response_body | ||
} |
16 changes: 6 additions & 10 deletions
16
modules/samversion/variables.tf → modules/sam_asset/variables.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
File renamed without changes.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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