Robert Phamle
01/19/2024, 10:28 PMThe Prefect API Endpoint is configured to Prefect Cloud, however, the
Prefect API Key is empty. Potential resolutions: set the endpoint attribute
or PREFECT_API_URL environment variable to a Prefect server installation,
set the PREFECT_API_KEY environment variable, or configure the api_key
attribute.
Marvin
01/19/2024, 10:29 PMapi_key
argument is correctly assigned the value from the AWS Secrets Manager.
3. Terraform Outputs: Try to output the retrieved secret in Terraform to verify that the value is being correctly fetched and passed. Be cautious with this step to avoid leaking secrets.
4. Environment Variable: As a fallback, try setting the PREFECT_API_KEY
environment variable manually to rule out any issues with variable interpolation within Terraform.
5. Prefect Provider Version: Ensure that you are using the correct version of the Prefect provider which supports the configuration that you are trying to use.
6. Terraform Version: Validate that the version of Terraform you are using is compatible with the Prefect provider.
7. Debug Logging: Enable verbose logging in Terraform to get more insights into what's happening during the execution.
Remember to treat the API key with care to avoid any security issues. If these steps don't resolve the issue, you may want to query more specifically about handling secrets in Terraform with AWS Secrets Manager or consider asking directly in Prefect community forums or support channels.