Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Account-Customizations pipeline running out of resources for terraform apply #474

Open
bartoszbryk opened this issue Jun 28, 2024 · 1 comment
Labels
bug Something isn't working pending investigation Issue needs further investigation

Comments

@bartoszbryk
Copy link

Terraform Version & Prov:

AFT Version:
1.11.1

Terraform Version & Provider Versions
Please provide the outputs of terraform version and terraform providers from within your AFT environment

terraform version

 1.3.7


terraform providers

Provider aws v5.56.0

Bug Description
We have large number of resources deployed as part of one pipeline, that utilises one state and deploys them to one account. This causes the AFT pipeline runs to fail due to lack of resources. The errors we are observing are:
The plugin.(*GRPCProvider).ValidateResourceConfig request was cancelled.
Error: Request cancelled
We would like to split the state of customizations for this particular accounts to separate state file, that's being applied in separate flow. Is this possible in the current AFT implementation? What would be the steps to achieve that

To Reproduce
Steps to reproduce the behavior:

  1. Try to create large number of resources using terraform via AFT Account Customizations (>2000)
  2. The terraform in the pipeline will fail due to lack of resources or timeout

Expected behavior
We would like to be able to run multiple account-customizations for the same account

@bartoszbryk bartoszbryk added bug Something isn't working pending investigation Issue needs further investigation labels Jun 28, 2024
@igordust
Copy link

igordust commented Jul 29, 2024

The error message usually means that terraform is eating all the available memory. From the description you made this seems to be the case.
Currently the customizations pipeline uses an EC2 instance with 7 GB of RAM, can you try to upgrade manually to a more powerful instance in the problematic codebuild pipeline, just to understand if the issue is related to the memory as it appears to be?

Anyway, at the moment AFT doesn't give the ability to define the EC2 instance type to use for codebuild, normally an EC2 with 7GB should suffice for most of the cases, so there could be a new feature to specify the instance type for customizations pipelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working pending investigation Issue needs further investigation
Projects
None yet
Development

No branches or pull requests

2 participants