Skip to content
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

Unable to create vpc and private network #248

Closed
Gerrel opened this issue Aug 7, 2023 · 1 comment
Closed

Unable to create vpc and private network #248

Gerrel opened this issue Aug 7, 2023 · 1 comment

Comments

@Gerrel
Copy link

Gerrel commented Aug 7, 2023

Unable to create vpc and private network.

In the Scaleway console for creating VPC you can provide the "Virtual Private Cloud name" and "Private Network name". Probably "Private Network name" property is missing?

const provider = new scaleway.Provider('base-provider', {
    organizationId: organizationId,
    region: region,
    zone: zone,
});

const vpcNetwork = new scaleway.Vpc('base-vpc', {
    name: 'vpc',
    region: region,
    tags: ['cluster']
}, {
    provider: provider,
})

const privateNetwork = new scaleway.VpcPrivateNetwork('base-private-network', {
    vpcId: vpcNetwork.id,
    name: 'cluster-pn',
    region: region,
    zone: zone,
}, {
    provider: provider,
    dependsOn: vpcNetwork,
});

Gives error:

scaleway:index:Vpc (base-vpc): error: 1 error occurred: * scaleway-sdk-go: invalid argument(s):

Creating VPC Private Network directly without vpcId also gives same error:

const provider = new scaleway.Provider('base-provider', {
    organizationId: organizationId,
    region: region,
    zone: zone,
});

// const vpcNetwork = new scaleway.Vpc('base-vpc', {
//     name: 'vpc',
//     region: region,
//     tags: ['cluster']
// }, {
//     provider: provider,
// })

const privateNetwork = new scaleway.VpcPrivateNetwork('base-private-network', {
    // vpcId: vpcNetwork.id,
    name: 'cluster-pn',
    region: region,
    zone: zone,
    
}, {
    provider: provider,
    // dependsOn: vpcNetwork,
});
@Gerrel
Copy link
Author

Gerrel commented Nov 1, 2023

fixed with latest update

@Gerrel Gerrel closed this as completed Nov 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant