azurenoops / ref-scca-enclave-landing-zone-starter

A reference implementation of an SCCA-compliant Mission Enclave landing zone that supports running Azure PaaS services using Azure NoOps.
4 stars 7 forks source link

'Resource not found' Errors when running terraform plan #15

Closed timothymeyers closed 1 year ago

timothymeyers commented 1 year ago

Please provide us with the following information:

This issue is for a: (mark with an x)

- [x] bug report -> please search issues before submitting
- [ ] feature request
- [ ] documentation issue or request
- [ ] regression (a behavior that used to work and stopped in a new release)

Minimal steps to reproduce

Running terraform plan -var-file=parameters.tfvars results in two subnets in 06-shared-services/data.tf not being found. I have not been able to track down a workaround or fix for it.

Both appear to be hardcoded in data.tf (see below).

image

Any log messages given by the failure

image

Expected/desired behavior

I would expect (1) the subnet names to be generated by terraform plan and (2) to follow the naming convention applied elsewhere.

OS and Version?

Windows 7, 8 or 10. Linux (which distribution). macOS (Yosemite? El Capitan? Sierra?)

Versions

Mention any other details that might be useful


Thanks! We'll be in touch soon.

timothymeyers commented 1 year ago

I am a little confused by a terraform plan complaining about resources not found when I would expect it should know about the dependencies on resources known only after apply?

jrspinella commented 1 year ago

I am a little confused by a terraform plan complaining about resources not found when I would expect it should know about the dependencies on resources known only after apply?

I think this a dependency on the landing zone module. I will look into it.

jrspinella commented 1 year ago

This was added #19 to add dependency to the landing zone, to stop planning errors.