Most Common resource Name of AWS , azure can be used in Terrform TF file - unix1998/technical_notes GitHub Wiki
When working with Terraform to provision resources on cloud platforms like AWS and Azure, there are several common resources that you'll frequently encounter and use in your .tf
files. Here's a list of some of the most common resources for AWS and Azure:
AWS Resources:
- EC2 Instance:
aws_instance
- Virtual Private Cloud (VPC):
aws_vpc
- Subnet:
aws_subnet
- Internet Gateway:
aws_internet_gateway
- Route Table:
aws_route_table
- Security Group:
aws_security_group
- Elastic Block Store (EBS) Volume:
aws_ebs_volume
- Elastic Load Balancer (ELB):
aws_lb
- Auto Scaling Group:
aws_autoscaling_group
- Route 53 Record:
aws_route53_record
- S3 Bucket:
aws_s3_bucket
- IAM User/Role/Policy:
aws_iam_user
,aws_iam_role
,aws_iam_policy
- RDS Instance:
aws_db_instance
- Lambda Function:
aws_lambda_function
- CloudWatch Metric Alarm:
aws_cloudwatch_metric_alarm
- Elastic Container Service (ECS):
aws_ecs_cluster
,aws_ecs_service
,aws_ecs_task_definition
Azure Resources:
- Virtual Machine:
azurerm_virtual_machine
- Virtual Network (VNet):
azurerm_virtual_network
- Subnet:
azurerm_subnet
- Network Security Group (NSG):
azurerm_network_security_group
- Public IP Address:
azurerm_public_ip
- Load Balancer:
azurerm_lb
- Storage Account:
azurerm_storage_account
- Blob Storage Container:
azurerm_storage_container
- Managed Disk:
azurerm_managed_disk
- SQL Database:
azurerm_sql_database
- App Service Plan:
azurerm_app_service_plan
- App Service:
azurerm_app_service
- Function App:
azurerm_function_app
- Cosmos DB Account:
azurerm_cosmosdb_account
- Key Vault:
azurerm_key_vault
- Azure Kubernetes Service (AKS):
azurerm_kubernetes_cluster
Common Concepts:
- Resource Group: Both AWS and Azure have the concept of a resource group to organize resources. In Terraform, you might interact with resource groups as well:
aws_resource_group
,azurerm_resource_group
. - Network Interface: Both AWS and Azure use network interfaces for connecting resources to networks:
aws_network_interface
,azurerm_network_interface
.
These are just a selection of common resources. Depending on your specific infrastructure requirements and use case, you may encounter and use additional resources. Always refer to the official Terraform documentation and the provider-specific documentation for a comprehensive list of available resources and their attributes.