generated from hashicorp/terraform-provider-scaffolding
-
Notifications
You must be signed in to change notification settings - Fork 122
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1154 from onceupon/d-improve-awscc_elasticbeansta…
…lk_environment docs: add example for: elasticbeanstalk_environment
- Loading branch information
Showing
3 changed files
with
71 additions
and
2 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
18 changes: 18 additions & 0 deletions
18
examples/resources/awscc_elasticbeanstalk_environment/elasticbeanstalk_environment.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
resource "awscc_elasticbeanstalk_application" "example-app" { | ||
application_name = "example-app" | ||
description = "example-app" | ||
} | ||
|
||
resource "awscc_elasticbeanstalk_environment" "example-env" { | ||
application_name = awscc_elasticbeanstalk_application.example-app.application_name | ||
solution_stack_name = "64bit Amazon Linux 2023 v4.0.3 running Python 3.11" | ||
option_settings = [{ | ||
namespace = "aws:autoscaling:launchconfiguration" | ||
option_name = "IamInstanceProfile" | ||
value = "example-aws-elasticbeanstalk-ec2-role" | ||
}] | ||
tags = [{ | ||
key = "Managed By" | ||
value = "AWSCC" | ||
}] | ||
} |
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,28 @@ | ||
--- | ||
page_title: "{{.Name}} {{.Type}} - {{.ProviderName}}" | ||
subcategory: "" | ||
description: |- | ||
{{ .Description | plainmarkdown | trimspace | prefixlines " " }} | ||
--- | ||
|
||
# {{.Name}} ({{.Type}}) | ||
|
||
{{ .Description | trimspace }} | ||
|
||
## Example Usage | ||
|
||
### Basic usage with Python platform | ||
In this example, we are going to create an AWS Elastic Beanstalk environment using Python platform. Please refer to [Python platform history](https://docs.aws.amazon.com/elasticbeanstalk/latest/platforms/platform-history-python.html) and use the current platform version and solution stack name. Also, please replace `example-aws-elasticbeanstalk-ec2-role` with your existing [instance profile](https://docs.aws.amazon.com/elasticbeanstalk/latest/dg/iam-instanceprofile.html). | ||
{{ tffile (printf "examples/resources/%s/elasticbeanstalk_environment.tf" .Name)}} | ||
|
||
|
||
{{ .SchemaMarkdown | trimspace }} | ||
{{- if .HasImport }} | ||
|
||
## Import | ||
|
||
Import is supported using the following syntax: | ||
|
||
{{ codefile "shell" .ImportFile }} | ||
|
||
{{- end }} |