-
Notifications
You must be signed in to change notification settings - Fork 95
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
Azure support #40
Azure support #40
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Also, did you run go run scripts/assets/main.go --dry
? I see a lot of extra images that we do not want.
@@ -0,0 +1,673 @@ | |||
{ | |||
"version": 4, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not pruned
generate/testdata/azure.tfstate
Outdated
@@ -5,6 +5,7 @@ | |||
"lineage": "65f8a469-c021-ee9d-a634-45cdf74dff6b", | |||
"outputs": { | |||
"tls_private_key": { | |||
"value": "-----", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
provider/azurerm/azurerm.go
Outdated
|
||
var ( | ||
usedAttributes = []string{ | ||
"azurerm_virtual_network_peering", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think not, this should be attributes not resources, so basically it is virtual_network_name
remote_virtual_network_id
, id
and name
for what I see.
Done. I'm sorry about rebase, but I've done something wrong and had to. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The Changelog is missing
Added |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have to link on the Changelog #8
CHANGELOG.md
Outdated
- Azure support | ||
([PR #40](https://github.com/cycloidio/inframap/pull/40)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, modified the PR link to issue link
Done. Will have to modify the commit message during rebase |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rs
Done |
func (a Provider) ResourceInOut(id, rs string, cfgs map[string]map[string]interface{}) ([]string, []string) { | ||
var ins, outs []string | ||
cfg := cfgs[id] | ||
switch rs { | ||
case "azurerm_virtual_network_peering": | ||
vnn := cfg["virtual_network_name"] | ||
vnID, ok := getRsIDByName(cfgs, vnn) | ||
if !ok { | ||
break | ||
} | ||
ins = append(ins, vnID) | ||
|
||
rvni := cfg["remote_virtual_network_id"] | ||
outs = append(outs, rvni.(string)) | ||
} | ||
return ins, outs | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have test for ths on the other providers
Done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RS
Done |
Added support for Azure:
tfstate
tf
Closes #8