Difference between revisions of "Terraform provider: aws"

From wikieduonline
Jump to navigation Jump to search
Line 102: Line 102:
 
* <code>[[Error: configuring Terraform AWS Provider: failed to get shared config profile]]</code>
 
* <code>[[Error: configuring Terraform AWS Provider: failed to get shared config profile]]</code>
 
* <code>[[AWS Error: A Profile was specified along with the environment variables "AWS ACCESS KEY ID" and "AWS SECRET ACCESS KEY". The Profile is now used instead of the environment variable credentials.]]</code>
 
* <code>[[AWS Error: A Profile was specified along with the environment variables "AWS ACCESS KEY ID" and "AWS SECRET ACCESS KEY". The Profile is now used instead of the environment variable credentials.]]</code>
 +
 +
== Limitation ==
 +
* <code>[[aws account disable-region]]</code> not implemented
  
 
== Related terms ==
 
== Related terms ==

Revision as of 13:55, 19 February 2024

Configuration examples

 provider "aws" {
 profile = "your_profile_name"
}
provider "aws" {
 version = "~> 3.38.0"
 region = "us-east-1"
 profile = "your_profile_name"
}
provider "aws" {
  region     = var.region
  version    = ">= 0.13"
  assume_role {
    role_arn = "arn:aws:iam::01234567890:role/role_in_account_b"
  }
}

Including Tags:

 # Terraform 0.12 (2019) and later syntax
provider "aws" {
  # ... other configuration ...
  default_tags {
    tags = {
      Environment = "Production"
      Owner       = "Ops"
    }
  }
}

Installing

Installing hashicorp/aws v4.31.0
Installing hashicorp/aws v4.29.0...
Installing hashicorp/aws v4.28.0...
Installing hashicorp/aws v4.15.1...
Installing hashicorp/aws v3.63.0...

Resources

Terraform IAM resources

Networking:

CloudFront

Networking

Computing:

RDS:

S3:

KMS

CloudWatch

WAF

Route53


CodeBuild

CodeDeploy

ECR

Errors

Limitation

Related terms

Activities / Changelog

See also

  • https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/vpc
  • https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_target
  • https://registry.terraform.io/providers/hashicorp/aws/latest/docs/resources/appautoscaling_policy
  • https://registry.terraform.io/search/providers?q=aws_ecs_service
  • Advertising: