Use this data source to get information about an AWS Serverless Application Repository application. For example, this can be used to determine the required capabilities
for an application.
data "aws_serverlessapplicationrepository_application" "example" {
application_id = "arn:aws:serverlessrepo:us-east-1:123456789012:applications/ExampleApplication"
}
resource "aws_serverlessapplicationrepository_cloudformation_stack" "example" {
name = "Example"
application_id = data.aws_serverlessapplicationrepository_application.example.application_id
semantic_version = data.aws_serverlessapplicationrepository_application.example.semantic_version
capabilities = data.aws_serverlessapplicationrepository_application.example.required_capabilities
}
application_id
- (Required) ARN of the application.semantic_version
- (Optional) Requested version of the application. By default, retrieves the latest version.This data source exports the following attributes in addition to the arguments above:
application_id
- ARN of the application.name
- Name of the application.required_capabilities
- A list of capabilities describing the permissions needed to deploy the application.source_code_url
- URL pointing to the source code of the application version.template_url
- URL pointing to the Cloud Formation template for the application version.