Skip to content

Commit

Permalink
v0.0.4
Browse files Browse the repository at this point in the history
  • Loading branch information
burakgzt authored Feb 13, 2023
1 parent 033e517 commit 69067af
Show file tree
Hide file tree
Showing 19 changed files with 174 additions and 68 deletions.
3 changes: 2 additions & 1 deletion Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ includes:
taskfile: ./provider/cmd/tests/TestTasks.yml

env:
versionNumber: 0.0.3
versionNumber:
sh: cat schema.json | jq -r '.version'

tasks:
sdk:
Expand Down
15 changes: 10 additions & 5 deletions schema.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "nuage",
"version":"0.0.4",
"types": {
"nuage:aws:ArchitectureType": {
"type":"string",
Expand Down Expand Up @@ -254,11 +255,13 @@
"Pulumi.Awsx":"1.0.0-beta.*",
"Pulumi.Docker":"3.*",
"Pulumi.Command":"4.6.0-alpha.*"
}
},
"respectSchemaVersion": true
},
"go": {
"generateResourceContainerTypes": true,
"importBasePath": "github.com/pulumi/pulumi-nuage/sdk/go/nuage"
"importBasePath": "github.com/pulumi/pulumi-nuage/sdk/go/nuage",
"respectSchemaVersion": true
},
"nodejs": {
"dependencies": {
Expand All @@ -270,7 +273,8 @@
"devDependencies": {
"@types/node": "^17.0.21",
"typescript": "^3.7.0"
}
},
"respectSchemaVersion": true
},
"python": {
"requires": {
Expand All @@ -279,8 +283,9 @@
"pulumi-awsx": ">=1.0.0b11",
"pulumi_docker": ">=3.0.0,<4.0.0",
"pulumi-random": ">4.8.0",
"pulumi-command": ">0.7.0"
}
"pulumi-command": ">=0.7.0"
},
"respectSchemaVersion": true
}
}
}
5 changes: 5 additions & 0 deletions sdk/dotnet/Aws/ContainerFunction.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

namespace Pulumi.Nuage.Aws
{
/// <summary>
/// Provides an AWS Lambda Function with additional necesary resources. It bundles several resources such as `Lambda Functions`, `Function URLs`, `CloudWatch keep-warm rules`, `Log Group with a Retention Policy`, `Role to run Lambda and Write Logs`. It also has a feature to manage build and deployment of Docker builds, removal of docker build artifacts (randomly generated image names that pollute your local docker) and automated X-Ray tracing.
///
/// ## Example Usage
/// </summary>
[NuageResourceType("nuage:aws:ContainerFunction")]
public partial class ContainerFunction : Pulumi.ComponentResource
{
Expand Down
5 changes: 5 additions & 0 deletions sdk/dotnet/Aws/ServerlessDatabase.cs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@

namespace Pulumi.Nuage.Aws
{
/// <summary>
/// The ServerlessDatabase component is a convenient and efficient solution for creating serverless databases using Amazon RDS Aurora. It automatically creates components such as subnet group, security group, security group rules, and RDS cluster, and securely manages the DB credentials. With support for both MySQL and PostgreSQL, it provides a fully configured serverless database resource for your serverless database needs.
///
/// ## Example Usage
/// </summary>
[NuageResourceType("nuage:aws:ServerlessDatabase")]
public partial class ServerlessDatabase : Pulumi.ComponentResource
{
Expand Down
3 changes: 2 additions & 1 deletion sdk/dotnet/pulumi-plugin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"resource": true,
"name": "nuage"
"name": "nuage",
"version": "0.0.4"
}
2 changes: 1 addition & 1 deletion sdk/dotnet/version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.0.3
0.0.4
21 changes: 14 additions & 7 deletions sdk/go/nuage/aws/containerFunction.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions sdk/go/nuage/aws/init.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions sdk/go/nuage/aws/serverlessDatabase.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion sdk/go/nuage/pulumi-plugin.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"resource": true,
"name": "nuage"
"name": "nuage",
"version": "0.0.4"
}
5 changes: 5 additions & 0 deletions sdk/nodejs/aws/containerFunction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";

/**
* Provides an AWS Lambda Function with additional necesary resources. It bundles several resources such as `Lambda Functions`, `Function URLs`, `CloudWatch keep-warm rules`, `Log Group with a Retention Policy`, `Role to run Lambda and Write Logs`. It also has a feature to manage build and deployment of Docker builds, removal of docker build artifacts (randomly generated image names that pollute your local docker) and automated X-Ray tracing.
*
* ## Example Usage
*/
export class ContainerFunction extends pulumi.ComponentResource {
/** @internal */
public static readonly __pulumiType = 'nuage:aws:ContainerFunction';
Expand Down
5 changes: 5 additions & 0 deletions sdk/nodejs/aws/serverlessDatabase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,11 @@
import * as pulumi from "@pulumi/pulumi";
import * as utilities from "../utilities";

/**
* The ServerlessDatabase component is a convenient and efficient solution for creating serverless databases using Amazon RDS Aurora. It automatically creates components such as subnet group, security group, security group rules, and RDS cluster, and securely manages the DB credentials. With support for both MySQL and PostgreSQL, it provides a fully configured serverless database resource for your serverless database needs.
*
* ## Example Usage
*/
export class ServerlessDatabase extends pulumi.ComponentResource {
/** @internal */
public static readonly __pulumiType = 'nuage:aws:ServerlessDatabase';
Expand Down
5 changes: 3 additions & 2 deletions sdk/nodejs/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
{
"name": "@pulumi/nuage",
"version": "${VERSION}",
"version": "0.0.4",
"scripts": {
"build": "tsc",
"install": "node scripts/install-pulumi-plugin.js resource nuage ${VERSION}"
"install": "node scripts/install-pulumi-plugin.js resource nuage 0.0.4"
},
"dependencies": {
"@pulumi/aws": "^5.0.0",
Expand All @@ -19,6 +19,7 @@
"@pulumi/pulumi": "latest"
},
"pulumi": {
"version": "0.0.4",
"resource": true
}
}
28 changes: 14 additions & 14 deletions sdk/nodejs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -239,9 +239,9 @@ available-typed-arrays@^1.0.5:
integrity sha512-DMD0KiN46eipeziST1LPP/STfDU0sufISXmjSgvVsoU2tqxctQeASejWcfNtxYKqETM1UxQ8sp2OrSBWpHY6sw==

aws-sdk@^2.0.0:
version "2.1311.0"
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.1311.0.tgz#c9b3ea41cb88fce6104ff70a6b95a5a3ea4c6115"
integrity sha512-X3cFNsfs3HUfz6LKiLqvDTO4EsqO5DnNssh9SOoxhwmoMyJ2et3dEmigO6TaA44BjVNdLW98+sXJVPTGvINY1Q==
version "2.1313.0"
resolved "https://registry.yarnpkg.com/aws-sdk/-/aws-sdk-2.1313.0.tgz#e6dad914670fb3f4d5cd95c58413fca5ea5c6c86"
integrity sha512-8GMdtV2Uch3HL2c6+P3lNZFTcg/fqq9L3EWYRLb6ljCZvWKTssjdkjSJFDyTReNgeiKV224YRPYQbKpOEz4flQ==
dependencies:
buffer "4.9.2"
events "1.1.1"
Expand Down Expand Up @@ -326,9 +326,9 @@ debuglog@^1.0.1:
integrity sha512-syBZ+rnAK3EgMsH2aYEOLUW7mZSY9Gb+0wUMCFsZvcmiz+HigA0LOcq/HoQqVuGG+EKykunc7QG2bzrponfaSw==

define-properties@^1.1.3, define-properties@^1.1.4:
version "1.1.4"
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.1.4.tgz#0b14d7bd7fbeb2f3572c3a7eda80ea5d57fb05b1"
integrity sha512-uckOqKcfaVvtBdsVkdPv3XjveQJsNQqmhXgRi8uhvWWuPYZCNlzT8qAyblUgNoXdHdjMTzAqeGjAoli8f+bzPA==
version "1.2.0"
resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.0.tgz#52988570670c9eacedd8064f4a990f2405849bd5"
integrity sha512-xvqAVKGfT1+UAvPwKTVw/njhdQ8ZhXK4lI0bCIuCMrp2up9nPnaDftrLtmpTazqd1o+UY4zgzU+avtMbDP+ldA==
dependencies:
has-property-descriptors "^1.0.0"
object-keys "^1.1.1"
Expand Down Expand Up @@ -465,7 +465,7 @@ functions-have-names@^1.2.2:
resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834"
integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ==

get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3:
get-intrinsic@^1.0.2, get-intrinsic@^1.1.1, get-intrinsic@^1.1.3, get-intrinsic@^1.2.0:
version "1.2.0"
resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.0.tgz#7ad1dc0535f3a2904bba075772763e5051f6d05f"
integrity sha512-L049y6nFOuom5wGyRc3/gdTLO94dySVKRACj1RmJZBQXlbTMhtNIgkWkUHq+jYmZvKf14EW1EoJnnjbmoHij0Q==
Expand Down Expand Up @@ -598,11 +598,11 @@ ini@^2.0.0:
integrity sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==

internal-slot@^1.0.4:
version "1.0.4"
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.4.tgz#8551e7baf74a7a6ba5f749cfb16aa60722f0d6f3"
integrity sha512-tA8URYccNzMo94s5MQZgH8NB/XTa6HsOo0MLfXTKKEnHVVdegzaQoFZ7Jp44bdvLvY2waT5dc+j5ICEswhi7UQ==
version "1.0.5"
resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.5.tgz#f2a2ee21f668f8627a4667f309dc0f4fb6674986"
integrity sha512-Y+R5hJrzs52QCG2laLn4udYVnxsfny9CpOhNhUvk/SSSVyF6T27FzRbF0sroPidSu3X8oEAkOn2K804mjpt6UQ==
dependencies:
get-intrinsic "^1.1.3"
get-intrinsic "^1.2.0"
has "^1.0.3"
side-channel "^1.0.4"

Expand Down Expand Up @@ -791,9 +791,9 @@ minimatch@^3.1.1:
brace-expansion "^1.1.7"

minimist@^1.2.0, minimist@^1.2.6:
version "1.2.7"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.7.tgz#daa1c4d91f507390437c6a8bc01078e7000c4d18"
integrity sha512-bzfL1YUZsP41gmu/qjrEk0Q6i2ix/cVeAhbCbqH9u3zYutS1cLg00qhrD0M2MVdCcx4Sc0UpP2eBWo9rotpq6g==
version "1.2.8"
resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c"
integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==

mkdirp@^0.5.1:
version "0.5.6"
Expand Down
28 changes: 0 additions & 28 deletions sdk/python/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,34 +2,6 @@

Pulumi components carefully crafted by Nuage

## Install the Pulumi Plugin

To use this resource, you need to install Pulumi plugin first (independent from the development language).

1. Download the latest release from <https://github.com/nuage-studio/pulumi-nuage/releases/>
2. Install the .tar.gz package using Pulumi

```bash
pulumi plugin install resource nuage 0.0.1 --file pulumi-resource-nuage-v0.0.1-darwin-amd64.tar.gz
```

You may also automate this process via Taskfile. Here is an example:

```yaml
version: "3"

tasks:
pulumi_install:
desc: Downloads binary
vars:
VERSION: 0.0.1
FILE_NAME: "pulumi-resource-nuage-v0.0.1-darwin-amd64.tar.gz"
cmds:
- curl -L -o {{.FILE_NAME}} https://github.com/nuage-studio/pulumi-nuage/releases/download/{{.VERSION}}/{{.FILE_NAME}}
- pulumi plugin install resource nuage {{.VERSION}} --file {{.FILE_NAME}}
- rm {{.FILE_NAME}}
```
## Setup Instructions for Python SDK

You can use the following command to add python library via Poetry:
Expand Down
58 changes: 56 additions & 2 deletions sdk/python/pulumi_nuage/aws/container_function.py
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,34 @@ def __init__(__self__,
url: Optional[pulumi.Input[bool]] = None,
__props__=None):
"""
Create a ContainerFunction resource with the given unique name, props, and options.
Provides an AWS Lambda Function with additional necesary resources. It bundles several resources such as `Lambda Functions`, `Function URLs`, `CloudWatch keep-warm rules`, `Log Group with a Retention Policy`, `Role to run Lambda and Write Logs`. It also has a feature to manage build and deployment of Docker builds, removal of docker build artifacts (randomly generated image names that pollute your local docker) and automated X-Ray tracing.
## Example Usage
### Basic Example
```python
import pulumi_nuage as nuage
repository = nuage.aws.Repository(
"foo",
name="repository",
expire_in_days=30,
)
container_function = nuage.aws.ContainerFunction("foo",
name="lambda-function",
description="Nuage AWS ContainerFunction resource.",
repository_url=repository.url,
architecture="x86_64",
memory_size=512,
timeout=30,
environment={"bar":"baz"},
keep_warm=True,
url=True,
log_retention_in_days=90
)
```
:param str resource_name: The name of the resource.
:param pulumi.ResourceOptions opts: Options for the resource.
:param pulumi.Input[str] architecture: Architecture, either `X86_64` or `ARM64`. Defaults to `x86_64`
Expand All @@ -287,7 +314,34 @@ def __init__(__self__,
args: ContainerFunctionArgs,
opts: Optional[pulumi.ResourceOptions] = None):
"""
Create a ContainerFunction resource with the given unique name, props, and options.
Provides an AWS Lambda Function with additional necesary resources. It bundles several resources such as `Lambda Functions`, `Function URLs`, `CloudWatch keep-warm rules`, `Log Group with a Retention Policy`, `Role to run Lambda and Write Logs`. It also has a feature to manage build and deployment of Docker builds, removal of docker build artifacts (randomly generated image names that pollute your local docker) and automated X-Ray tracing.
## Example Usage
### Basic Example
```python
import pulumi_nuage as nuage
repository = nuage.aws.Repository(
"foo",
name="repository",
expire_in_days=30,
)
container_function = nuage.aws.ContainerFunction("foo",
name="lambda-function",
description="Nuage AWS ContainerFunction resource.",
repository_url=repository.url,
architecture="x86_64",
memory_size=512,
timeout=30,
environment={"bar":"baz"},
keep_warm=True,
url=True,
log_retention_in_days=90
)
```
:param str resource_name: The name of the resource.
:param ContainerFunctionArgs args: The arguments to use to populate this resource's properties.
:param pulumi.ResourceOptions opts: Options for the resource.
Expand Down
Loading

0 comments on commit 69067af

Please sign in to comment.