-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid Index errors #1
Comments
Hello, are you using OCI Resource Manager or are you running the module through Terraform ? In the latter case, can you share your |
Hi, thanks for responding. I'm using OCI Resource Manager. The "Deploy" button didn't work for me due to the url being gone so I downloaded the zip file of the latest release, uploaded it to a new stack in Resource Manager, edited my variables, ran a "Plan" and got the 2 errors. |
The URL used by Deploy to Oracle Cloud was broken, the right URL is: The README.md has been updated accordingly, would you try again ? |
Using the new link was helpful (thank you!), but the build still fails with the exact same 2 error messages as above. |
Are you using existing subnets, right ? |
@ratkosomni the issue was caused by wrong route table attachment when existing subnets are used. Since the subnets are already there, route tables are not created so their attachment should be skipped. Now is it possible to run |
Plan is now able to execute successfully, then attempting to run Apply using the successful Plan output fails. Error: can not marshal to path in request for field UserId. Due to can not marshal a nil pointer Error: 400-LimitExceeded |
There cannot be more than one NAT Gateway for VCN, the error message is not clear. However, since existing VCN and subnets have been selected this action should not be in the plan: issue #2 has been created to fix it. For using Object Storage through S3 Compatibility API, a customer secret key is required. The stack handles it using the pre-populated variables using Resource Manager, however the name of the variable that contains the user OCID changed recently: issue #3 has been created to fix it |
Thank you for both fixes. Should I destroy the stack and re-run a Plan+Apply? |
Yes, please |
Plan and Apply both ran successfully, thank you for your help! This was exactly what my org needed to quickly get an sftp server up and running on our cloud tenancy, can say enough how much I appreciate it. |
Hey cdvita, I'm having the same problem. Error OCI Terraform Line Can you help me? I'm using OCI Resource Manager |
Let's discuss in the dedicated issue |
Is there a way to edit stack variables in order to resolve the 2 errors below?
Error: Invalid index
on network.tf line 108, in resource "oci_core_route_table_attachment" "cn_sftp_lb_subnet_rt_attachment"
108: route_table_id = oci_core_route_table.cn_sftp_lb_subnet_rt[0].id
├────────────────
│ oci_core_route_table.cn_sftp_lb_subnet_rt is empty tuple
The given key does not identify an element in this collection value.
Error: Invalid index
on network.tf line 130, in resource "oci_core_route_table_attachment" "cn_sftp_servers_subnet_rt_attachment"
130: route_table_id = oci_core_route_table.cn_sftp_servers_subnet_rt[0].id
├────────────────
│ oci_core_route_table.cn_sftp_servers_subnet_rt is empty tuple
The given key does not identify an element in this collection value.
The text was updated successfully, but these errors were encountered: