Skip to content

Ignore Existing Resources in Terraform State #948

@mws-driva

Description

@mws-driva

Current cf-terraforming version

0.24.0

Description

It would be great if there was a flag such that generate and import wouldnt generate code for resources that already exist in state / are already managed by terraform

Use cases

The use case is when there is already a large amount of existing resources and some are created outside of Terraform

Potential cf-terraforming usage

cf-terraforming generate \
    --account "$TF_VAR_cloudflare_account_id" \
    --terraform-binary-path "/opt/homebrew/bin/terraform" \
    --ignore-managed-resources
    --resource-type "cloudflare_zero_trust_access_application"

References

NA

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions