Open Leejjon opened 11 months ago
When I try to just create a second app instead of importing, I get:
fly_app.our-fly-app: Creating...
╷
│ Error: Create app failed
│
│ with fly_app.our-fly-app,
│ on main.tf line 14, in resource "fly_app" "our-fly-app":
│ 14: resource "fly_app" "our-fly-app" {
│
│ input:3: createApp Not authorized to deploy this app.
│
╵
Shared ip addresses aren't actually "ip address" resources apparently. It's a property of the app. I think just importing the app would be enough to get it using the (my updated) fork in #257
I created a fly.io app with the flyctl launch command, and it generated an app with a shared ipv4 ip address and an ipv6 address.
I created a main.tf file that has definitions for the app and two ip addresses:
I could import the app perfectly fine with the command:
terraform import fly_app.our-fly-app leejjon-node-sqlite-fly-tutorial
Now terraform nicely shows that my app exists.
According to the docs you can do this command:
terraform import fly_ip.exampleIp <app_id>,<ip_address>
I also tried it without the quotes.
The ipv6 command does work:
I cannot find the
Error: Could not find IPAssignment
on Google and I want to know if I'm doing something wrong or if this is a bug in the terraform provider.