# Devops Infra

> 基础设施 - Terraform/Ansible/AWS/云配置

- **Type:** Skill
- **Install:** `agentstack add skill-awesome-ai-dev-awesome-ai-dev-infra`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [awesome-ai-dev](https://agentstack.voostack.com/s/awesome-ai-dev)
- **Installs:** 0
- **Category:** [Cloud & Infrastructure](https://agentstack.voostack.com/c/cloud-infrastructure)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [awesome-ai-dev](https://github.com/awesome-ai-dev)
- **Source:** https://github.com/awesome-ai-dev/awesome-ai-dev/tree/main/.cursor/skills/devops/infra

## Install

```sh
agentstack add skill-awesome-ai-dev-awesome-ai-dev-infra
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 基础设施

## Terraform

```hcl
# main.tf
provider "aws" {
  region = "us-east-1"
}

resource "aws_instance" "app" {
  ami           = "ami-0c55b159cbfafe1f0"
  instance_type = "t3.micro"
  
  tags = {
    Name = "app-server"
  }
}

resource "aws_s3_bucket" "data" {
  bucket = "my-app-data"
}
```

```bash
# 命令
terraform init
terraform plan
terraform apply
terraform destroy
```

## Ansible

```yaml
# playbook.yml
- hosts: webservers
  become: yes
  tasks:
    - name: Install Node.js
      apt:
        name: nodejs
        state: present
    
    - name: Deploy app
      git:
        repo: https://github.com/user/app.git
        dest: /var/www/app
    
    - name: Start service
      systemd:
        name: app
        state: started
```

## AWS CLI

```bash
# EC2
aws ec2 run-instances --image-id ami-xxx --instance-type t3.micro

# S3
aws s3 mb s3://my-bucket
aws s3 cp file.txt s3://my-bucket/

# Lambda
aws lambda create-function --function-name my-func \
  --runtime nodejs20.x \
  --handler index.handler \
  --zip-file fileb://function.zip
```

## 最佳实践

1. IaC 版本控制
2. 环境分离
3. 敏感信息管理
4. 状态备份

## 参考

- `.cursor/rules/dockerfile.mdc`

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [awesome-ai-dev](https://github.com/awesome-ai-dev)
- **Source:** [awesome-ai-dev/awesome-ai-dev](https://github.com/awesome-ai-dev/awesome-ai-dev)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-awesome-ai-dev-awesome-ai-dev-infra
- Seller: https://agentstack.voostack.com/s/awesome-ai-dev
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
