4,293 questions
-4 votes
1 answer
55 views
Can we achieve assigning roles and listing for multiple accounts using Native Terraform approach for AWS which is suitable for dyanmic too?
using Management account first i need to list all child accounts and i need to create an IAM role and IAM Trust policy with read only access to all child accounts through terraform and all the read ...
-1 votes
0 answers
128 views
Why does this error occur and how to resolve it
Error message Error: listing tags for S3 Control Access Point (arn:aws:s3-outposts:ap-southeast-1:xxxxxxx:outpost/xxxxxx/accesspoint/xxxxx): operation error S3 Control: ListTagsForResource, https ...
0 votes
0 answers
36 views
What is the equivalent `TargetCapacitySpecification` spec in a terraform spec?
I'm trying to create a EC2 spot fleet in AWS via terraform script. From Tutorial: Configure EC2 Fleet to use On-Demand Instances as the primary capacity, I see { "LaunchTemplateConfigs": ...
-3 votes
1 answer
72 views
How do I properly define a complex for_each variable
I am trying to define a list of aws_usage_plans, using a for_each. I am passing in this variable data: usage_plan_configs = { "xsmall" = {"name" = "xsmall", "...
0 votes
1 answer
60 views
How to automatically extract AWS Lambda configurations to Terraform for GCP migration? [closed]
I'm migrating multiple AWS Lambda functions to GCP and need to generate Terraform configurations that match the existing AWS setup. Currently, I'm manually writing each Lambda configuration, which is ...
0 votes
1 answer
81 views
Making cloud9 by terraform but can't find the ami
I am making cloud9 by terraform according to the article here However this code shows the error like this │ Error: Your query returned no results. Please change your search criteria and try again. │ │...
1 vote
1 answer
97 views
AWS Elastic Beanstalk.InvalidParameterValue [closed]
I modified my Terraform Repository several times in order to Deploy an AWS ElasticBeanstalk on my Free Tier AWS Account, but without success. The API error seen on Terraform is always the same : "...
0 votes
1 answer
70 views
Terraform lambda runtime management config: Fetch ALL lambda's ARN's
Hi I am working on something very simple I am creating a lambda runtime management config to manage all my lambda. I have around 9 existing ones. resource "aws_lambda_runtime_management_config&...
0 votes
0 answers
91 views
How to set permissions for AWS automation documents?
I use AWS automation to stop all my machines. The document for automation is set up with Terraform. I want to restrict the usage of the document to my developer group. But I don't know, how to set the ...
0 votes
1 answer
93 views
Terraform yamldecode Fails When YAML Structure Changes
I have a YAML file structured as follows: alerts: la: la1: description: "la1" severity: 1 resource_counter: "004" enabled: true ma: ma1:...
0 votes
0 answers
71 views
Can I update a Terraform write-only attribute based on a dynamic, non-integer value?
I'd hoped to bind a write-only Terraform resource attribute to the value of an AWS SecretsManager secret, using the secret version ID to trigger an update. For example, something like data "...
0 votes
1 answer
33 views
Terraform AWS cloudamqp_upgrade_rabbitmq is not working
In order to update CloudAMQP i tried mentioned in https://registry.terraform.io/providers/cloudamqp/cloudamqp/latest/docs/resources/upgrade_rabbitmq approach - Upgrade to latest possible version, from ...
0 votes
0 answers
65 views
How to get serial console output from AWS ec2 with terraform
How can the EC2 serial console output be logged, to capture the initial setup of EC2? AWS cli supports get-console-output, but I cannot find any documentation about AWS terraform provider to do so.
-1 votes
1 answer
42 views
How to use Terraform for_each on map(object(list)?
I'm working on adding a IAM policy, but my terraform code fails with the below error because some attributes are determined only after an apply, I don't want to run multiple apply commands, How can I ...
-4 votes
1 answer
165 views
ECS Task definition CPU setting for terraform
I have this error, it shows the error CPU is not correct Error: creating ECS Task Definition (wb_td): ClientException: Invalid 'cpu' setting for task. with this source below. resource "...