openclimatefix / ocf-infrastructure

Infrastructure code for OCF's cloud environments
3 stars 6 forks source link

Fixes terraform depreciation on vpc -> domain #421 #433

Closed BreakingPitt closed 7 months ago

BreakingPitt commented 7 months ago

Pull Request

Description

This pull request to address a deprecation warning related to the usage of the vpc attribute in the aws_eip resource, the warning suggests using the domain attribute instead.

Changes Made:

Why this is needed:

The pull request aims to update the Terraform code to align with the latest recommendations and resolve the deprecation warning.

Please review the changes, and if everything looks good, feel free to merge it. If you have any questions or concerns, please don't hesitate to reach out.

Thanks, Pedro

Fixes #421

Checklist:

peterdudfield commented 7 months ago

Thanks @BreakingPitt for these @all-contributors please add @BreakingPitt for code

allcontributors[bot] commented 7 months ago

@peterdudfield

I've put up a pull request to add @BreakingPitt! :tada:

peterdudfield commented 7 months ago

I got an error - Screenshot 2024-02-13 at 16 25 05 , so ill switch this back

BreakingPitt commented 7 months ago

Hi @peterdudfield

Maybe you have to update the required_provider used on this code.

Can you check your AWS provider version? I've read that this changes on version 4.67.0, the next version of the provider 5.0.0 should allow the use of domain ="vpc".

peterdudfield commented 7 months ago

https://github.com/openclimatefix/ocf-infrastructure/blob/main/terraform/nowcasting/development/backend.tf#L14,