Last active
September 18, 2023 18:06
-
-
Save omarismail/3c24e318412acbcaf042e44c2054bf4e to your computer and use it in GitHub Desktop.
provider-functions
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
terraform { | |
required_providers { | |
aws = { | |
source = "hashicorp/aws" | |
} | |
} | |
} | |
locals { | |
arn_parts = provider::aws::parse_arn("arn:aws:s3:::examplebucket/developers/design_info.doc") | |
} | |
output "arn_service" { | |
value = local.arn_parts.service | |
} | |
# Another ex: provider::time::iso8601(time_static.example.rfc3339) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The arguments defined by the provider function declaration will all be required arguments to pass into the function call. There won't be the notion of optional values, at least at in the beginning.
Yes
Yes
No, the output type is defined by the Provider Function definition