Skip to content

v0.25.0

Compare
Choose a tag to compare
@cloudpossebot cloudpossebot released this 01 Oct 14:56
797a39f
Wait for en external instance profile to be created before attempting to read it using data source @aknysh (#73)

what

  • Wait for en external instance profile to be created before attempting to read it using data source

why

  • When creating an instance profile and passing it into this module, the data lookup fails because the instance profile has not yet been created. The following error occurs when running terraform plan:
Error: Error getting instance profiles: NoSuchEntity: Instance Profile test cannot be found.
	status code: 404, request id: fcf2a09c-bfb3-4041-babd-95133304cf34

  on .terraform/modules/ec2_bug/main.tf line 73, in data "aws_iam_instance_profile" "given":
  73: data "aws_iam_instance_profile" "given" {

related

references

note

  • Same result could be achieved using TF 0.13 depends_on for modules, but we support TF 0.12 as well, that's why we added "Fake Resource/Module Dependencies"