Skip to content

Commit

Permalink
tf
Browse files Browse the repository at this point in the history
  • Loading branch information
chendelin1982 authored Jan 14, 2025
1 parent eb61be9 commit 1e4889b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
11 changes: 9 additions & 2 deletions docs/install/method/cloud/aws.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,14 @@ Websoft9 在 AWS 提供了预制[云市场镜像](https://aws.amazon.com/marketp
terraform -install-autocomplete
```

2. 在 AWS 平台准备:密钥对,安全组等资源,然后编写如下的 `main.tf`,并运行 `terraform fmt``terraform validate` 检测代码
2. 通过 AWS CLI 命令获取目标区域的 Websoft9 商品的镜像 ID
```
aws ec2 describe-images \
--filters "Name=product-code,Values=e5khuz6bgm3khfdzxa1q9fs99" \
--region us-east-1
```

3. 在 AWS 平台准备:密钥对,安全组等资源,然后编写如下的 `main.tf`,并运行 `terraform fmt``terraform validate` 检测代码
```
terraform {
required_version = ">= 1.4.0"
Expand Down Expand Up @@ -109,7 +116,7 @@ Websoft9 在 AWS 提供了预制[云市场镜像](https://aws.amazon.com/marketp
```

3. CloudShell 运行部署相关命令
4. CloudShell 运行部署相关命令
```
# init
terraform init
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,10 +79,18 @@ You can running Websoft8 by **AWS CloudShell** with [Terraform](https://develope
terraform -install-autocomplete
```

2. Prepare your Terraform `main.tf` and running commands `terraform fmt` and `terraform validate` to check it
2. Get the *ami** of Websoft9 product at AWS
```
aws ec2 describe-images \
--filters "Name=product-code,Values=e5khuz6bgm3khfdzxa1q9fs99" \
--region us-east-1
```

3. Prepare your Terraform `main.tf` and running commands `terraform fmt` and `terraform validate` to check it

- key_name
- vpc_security_group_ids
- ami

```
terraform {
Expand Down Expand Up @@ -111,7 +119,7 @@ You can running Websoft8 by **AWS CloudShell** with [Terraform](https://develope
```

3. Running terraform cli at your AWS CloudShell
4. Running terraform cli at your AWS CloudShell
```
# init
terraform init
Expand Down

0 comments on commit 1e4889b

Please sign in to comment.