Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Serverless Application Repository initial support #15874

Merged
merged 46 commits into from
Nov 25, 2020
Merged
Changes from 1 commit
Commits
Show all changes
46 commits
Select commit Hold shift + click to select a range
fab4ce2
Created happy path latest version Serverless Repo data source
Aug 1, 2018
9d762eb
Handle non-existent applications in the repo
Aug 1, 2018
294e1e8
Added version parameter for Serverless Application Repo application d…
Aug 1, 2018
b2cd9c3
Added documentation
Aug 1, 2018
649d557
Added basic creation, reading, and deletion of a Serveless Repo Appli…
Sep 7, 2018
13eedc6
Added version parameter as output and optional input
Sep 22, 2018
69b0823
Added test for changing application version
Oct 17, 2018
d6a90ec
Added parameter tests for basic case
Oct 23, 2018
48a747a
Formatting changes
Oct 23, 2018
14c40a2
Added outputs to serverless repo application
Oct 23, 2018
8ad2111
Added CloudFormation `capabilities` field as output; needed for update
Nov 11, 2018
41c3a7f
Factored waiting for creation of CloudFormation change set to separat…
Nov 13, 2018
8b6e857
Moved status check into function as well
Nov 13, 2018
6f28051
Factored waiting for execution of CloudFormation change set to separa…
Nov 13, 2018
0b42e3e
Revert "Factored waiting for execution of CloudFormation change set t…
Nov 14, 2018
8f715b7
Added Update to serverless application
Nov 14, 2018
753fa55
Added tags to Read operation
Nov 21, 2018
76a3de2
Add a test for reading tags
Sep 5, 2019
8344eb4
Fixes linting error
Sep 9, 2019
cc1f10e
Creates and updates tags
Sep 10, 2019
3c5419f
Updates AWS region used to the default `us-west-2`
Sep 10, 2019
70fd994
Renames the resource to `aws_serverlessrepository_stack`
Sep 10, 2019
69701fa
Adds documentation for `aws_serverlessrepository_stack`
Sep 10, 2019
062f836
Renames tests for `aws_serverlessrepository_stack`
Sep 10, 2019
507fbfb
Fixes typo in function name
Sep 10, 2019
18132b1
Merge branch 'master' into serverless_app_repo
gdavison Oct 26, 2020
0a5feb8
Fixes documentation errors
gdavison Oct 27, 2020
ef3f4a7
Adds `required_capabilities` to Serverless Application Repository app…
gdavison Oct 30, 2020
ae96e4f
Adds support for CAPABILITY_RESOURCE_POLICY capability
gdavison Nov 2, 2020
dc58f23
Adds disappears test
gdavison Nov 12, 2020
6d59d77
Create timeout constants
gdavison Nov 12, 2020
110c46f
Test stack name
gdavison Nov 12, 2020
f84d85b
Updates documentation
gdavison Nov 13, 2020
a7679dc
Tweaks
gdavison Nov 13, 2020
c5c4b99
Merge branch 'master' into serverless_app_repo
gdavison Nov 20, 2020
1ad9806
Adds exclusion to multiple AWS service rule
gdavison Nov 20, 2020
56a5fd4
Adds import functionality
gdavison Nov 24, 2020
f3aabe1
Renaming to match package name
gdavison Nov 24, 2020
66bccf1
Merge branch 'master' into serverless_app_repo
gdavison Nov 24, 2020
49c7ded
Renames file
gdavison Nov 24, 2020
a70a12d
Merge branch 'master' into serverless_app_repo
gdavison Nov 24, 2020
0908954
More renaming
gdavison Nov 24, 2020
124075f
Removes unneeded ForceNew from semantic_version attribute
gdavison Nov 25, 2020
69a0677
Updates tfresource.NotFound() to support wrapped errors
gdavison Nov 25, 2020
167791b
Reorganizes import and read code
gdavison Nov 25, 2020
19b88f7
Avoids Go formatting churn and Git conflict
gdavison Nov 25, 2020
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fixes documentation errors
gdavison committed Oct 27, 2020
commit 0a5feb856f04cf7650399aa81da1d48dab78af1b
1 change: 1 addition & 0 deletions website/allowed-subcategories.txt
Original file line number Diff line number Diff line change
@@ -106,6 +106,7 @@ SWF
Sagemaker
Secrets Manager
Security Hub
Serverless Application Repository
Service Catalog
Service Discovery
Service Quotas
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
---
subcategory: "Serverless Application Repository"
layout: "aws"
page_title: "AWS: aws_serverlessrepo_application"
sidebar_current: "docs-aws-datasource-serverlessrepo-application"
page_title: "AWS: aws_serverlessrepository_application"
description: |-
Get information on a AWS Serverless Application Repository application
---

# Data Source: aws_serverlessrepo_application
# Data Source: aws_serverlessrepository_application

Use this data source to get the source code URL and template URL of an AWS Serverless Application Repository application.

## Example Usage

```hcl
data "aws_serverlessrepo_application" "example" {
data "aws_serverlessrepository_application" "example" {
application_id = "arn:aws:serverlessrepo:us-east-1:123456789012:applications/ExampleApplication"
}

@@ -22,15 +22,15 @@ resource "aws_cloudformation_stack" "example" {

capabilities = ["CAPABILITY_NAMED_IAM"]

template_url = data.aws_serverlessrepo_application.example.template_url
template_url = data.aws_serverlessrepository_application.example.template_url
}

```

## Argument Reference

* `application_id` - (Required) The ARN of the application.
* `semantic_version` - (Optional) The requested version of the application. By default, uses the latest version.
* `semantic_version` - (Optional) The requested version of the application. By default, retrieves the latest version.

## Attributes Reference

4 changes: 2 additions & 2 deletions website/docs/r/serverlessrepository_stack.html.markdown
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Documentation is missing section on resource import.

subcategory: "Serverless Application Repository"
layout: "aws"
page_title: "AWS: aws_serverlessrepository_stack"
sidebar_current: "docs-aws-resource-serverlessrepository-stack"
description: |-
Provides a Serverless Application Repository Stack resource.
---
@@ -30,7 +30,7 @@ The following arguments are supported:
* `name` - (Required) The name of the stack to create. AWS prefixes this name with `serverlessrepo-`
* `application_id` - (Required) The ARN of the application from the Serverless Application Repository.
* `capabilities` - A list of capabilities.
Valid values: `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, `CAPABILITY_RESOURCE_POLICY`, or `CAPABILITY_AUTO_EXPAND`
Valid values: `CAPABILITY_IAM`, `CAPABILITY_NAMED_IAM`, or `CAPABILITY_AUTO_EXPAND`
* `parameters` - (Optional) A map of Parameter structures that specify input parameters for the stack.
* `semantic_version` - (Optional) The version of the application to deploy. If not supplied, deploys the latest version.
* `tags` - (Optional) A list of tags to associate with this stack.