@mikarinneoracle/oci-cdk-code-only-preview 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +29 -6
- package/package.json +1 -1
- package/lib/.gen/providers/oci/identity-dynamic-group/index.d.ts +0 -166
- package/lib/.gen/providers/oci/identity-dynamic-group/index.js +0 -408
- package/lib/bin/deploy-with-build.js +0 -132
- package/lib/test/java-function/aws-cdk/bin/app.d.ts +0 -2
- package/lib/test/java-function/aws-cdk/bin/app.js +0 -51
- package/lib/test/java-function/aws-cdk/lib/function-stack.d.ts +0 -11
- package/lib/test/java-function/aws-cdk/lib/function-stack.js +0 -159
- package/lib/test/java-function/aws-cdk/lib/test-function-stack.d.ts +0 -5
- package/lib/test/java-function/aws-cdk/lib/test-function-stack.js +0 -94
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/apigateway-deployment/index.d.ts +0 -5356
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/apigateway-deployment/index.js +0 -14972
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/apigateway-gateway/index.d.ts +0 -449
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/apigateway-gateway/index.js +0 -1149
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/artifacts-container-repository/index.d.ts +0 -217
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/artifacts-container-repository/index.js +0 -563
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-internet-gateway/index.d.ts +0 -176
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-internet-gateway/index.js +0 -431
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-route-table/index.d.ts +0 -255
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-route-table/index.js +0 -644
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-security-list/index.d.ts +0 -752
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-security-list/index.js +0 -2091
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-service-gateway/index.d.ts +0 -220
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-service-gateway/index.js +0 -543
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-subnet/index.d.ts +0 -251
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-subnet/index.js +0 -612
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-vcn/index.d.ts +0 -270
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/core-vcn/index.js +0 -672
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/data-oci-core-services/index.d.ts +0 -150
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/data-oci-core-services/index.js +0 -386
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/functions-application/index.d.ts +0 -330
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/functions-application/index.js +0 -821
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/functions-function/index.d.ts +0 -322
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/functions-function/index.js +0 -820
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/provider/index.d.ts +0 -190
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/provider/index.js +0 -391
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/vault-secret/index.d.ts +0 -439
- package/lib/test/java-function/oci-cdk/.gen/providers/oci/vault-secret/index.js +0 -1146
- package/lib/test/java-function/oci-cdk/bin/app.d.ts +0 -2
- package/lib/test/java-function/oci-cdk/bin/app.js +0 -34
- package/lib/test/java-function/oci-cdk/config/oci-config.d.ts +0 -68
- package/lib/test/java-function/oci-cdk/config/oci-config.js +0 -202
- package/lib/test/java-function/oci-cdk/lib/function-stack.d.ts +0 -31
- package/lib/test/java-function/oci-cdk/lib/function-stack.js +0 -549
- package/lib/test/java-function/oci-cdk/lib/test-function-stack.d.ts +0 -17
- package/lib/test/java-function/oci-cdk/lib/test-function-stack.js +0 -99
package/README.md
CHANGED
|
@@ -86,10 +86,17 @@ Only **`OCI_COMPARTMENT_ID`** (or `OCI_COMPARTMENT_OCID`) is required for deploy
|
|
|
86
86
|
|
|
87
87
|
### Using an OCI CLI preview installation
|
|
88
88
|
|
|
89
|
-
Choose a non-default CLI executable without changing your shell `PATH
|
|
89
|
+
Choose a non-default CLI executable without changing your shell `PATH`. `OCI_CLI_PATH` must be the absolute path to the preview binary, not merely the directory containing it:
|
|
90
90
|
|
|
91
91
|
```bash
|
|
92
|
-
export OCI_CLI_PATH="
|
|
92
|
+
export OCI_CLI_PATH="/absolute/path/to/oci-preview-bin/oci"
|
|
93
|
+
"$OCI_CLI_PATH" --version
|
|
94
|
+
```
|
|
95
|
+
|
|
96
|
+
For the repository-local preview installation used in this checkout:
|
|
97
|
+
|
|
98
|
+
```bash
|
|
99
|
+
export OCI_CLI_PATH="/Users/MRINNE/projects/ocdk/.tools/oci-preview-bin/oci"
|
|
93
100
|
```
|
|
94
101
|
|
|
95
102
|
The repository-local preview installation is required only for preview-only features such as Code-only Functions. Regular deployments continue to use `oci` from `PATH` unless `OCI_CLI_PATH` is set.
|
|
@@ -101,15 +108,31 @@ Code-only deployment first uses Terraform to create or manage the Function Appli
|
|
|
101
108
|
Activate the path with either `-code-only`, `--code-only`, or `OCI_CODE_ONLY=1`. The compatibility environment key `code-only=1` is also recognized when a process launcher can set a hyphenated environment name.
|
|
102
109
|
|
|
103
110
|
```bash
|
|
104
|
-
|
|
111
|
+
# Required: OCI CLI preview binary
|
|
112
|
+
export OCI_CLI_PATH="/Users/MRINNE/projects/ocdk/.tools/oci-preview-bin/oci"
|
|
113
|
+
"$OCI_CLI_PATH" --version
|
|
114
|
+
|
|
115
|
+
# Required: OCI target
|
|
105
116
|
export OCI_COMPARTMENT_ID='ocid1.compartment.oc1...'
|
|
106
|
-
|
|
107
|
-
|
|
117
|
+
|
|
118
|
+
# Required: code-only runtime and handler
|
|
108
119
|
export OCI_CODE_ONLY_RUNTIME_NAME='python312.ol9'
|
|
109
120
|
export OCI_FUNCTION_HANDLER='func.handler'
|
|
110
|
-
|
|
121
|
+
|
|
122
|
+
# Required in func.yaml: name: my-function
|
|
123
|
+
# Terraform creates the Function App; OCI CLI preview uploads the ZIP function
|
|
124
|
+
npx ocdk deploy --auto-approve --code-only
|
|
111
125
|
```
|
|
112
126
|
|
|
127
|
+
By default, the function name and Function App name both come from `func.yaml`'s `name`. Set these only to override that default or to use a differently named existing Function App:
|
|
128
|
+
|
|
129
|
+
```bash
|
|
130
|
+
export OCI_FUNCTION_NAME='my-function'
|
|
131
|
+
export OCI_FUNCTION_APP_NAME='my-existing-function-app'
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
These settings are optional: `OCI_CODE_ONLY_SOURCE_DIR` (defaults to the current directory), `OCI_FUNCTION_MEMORY_MB` (from `func.yaml`, otherwise `256`), and `OCI_FUNCTION_TIMEOUT_SECONDS` (from `func.yaml`, otherwise `30`). `OCI_TENANCY_ID`, `OCI_REGION`, and `OCI_NAMESPACE` are also optional when they can be resolved from the active OCI CLI profile.
|
|
135
|
+
|
|
113
136
|
The archive is built from `OCI_CODE_ONLY_SOURCE_DIR` (or the current directory). It includes source files and excludes `node_modules`, `.git`, `.tools`, `.terraform`, and `cdktf.out`. The current preview path is function-only: it does not create an API Gateway because the CLI-managed function OCID is not in Terraform state.
|
|
114
137
|
|
|
115
138
|
Use the same flag or environment variable for deletion. OCDK deletes the CLI-managed function first, then lets Terraform destroy the Function App and its infrastructure:
|
package/package.json
CHANGED
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
import { Construct } from 'constructs';
|
|
2
|
-
import * as cdktf from 'cdktf';
|
|
3
|
-
export interface IdentityDynamicGroupConfig extends cdktf.TerraformMetaArguments {
|
|
4
|
-
/**
|
|
5
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#compartment_id IdentityDynamicGroup#compartment_id}
|
|
6
|
-
*/
|
|
7
|
-
readonly compartmentId: string;
|
|
8
|
-
/**
|
|
9
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#defined_tags IdentityDynamicGroup#defined_tags}
|
|
10
|
-
*/
|
|
11
|
-
readonly definedTags?: {
|
|
12
|
-
[key: string]: string;
|
|
13
|
-
};
|
|
14
|
-
/**
|
|
15
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#description IdentityDynamicGroup#description}
|
|
16
|
-
*/
|
|
17
|
-
readonly description: string;
|
|
18
|
-
/**
|
|
19
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#freeform_tags IdentityDynamicGroup#freeform_tags}
|
|
20
|
-
*/
|
|
21
|
-
readonly freeformTags?: {
|
|
22
|
-
[key: string]: string;
|
|
23
|
-
};
|
|
24
|
-
/**
|
|
25
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#id IdentityDynamicGroup#id}
|
|
26
|
-
*
|
|
27
|
-
* Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2.
|
|
28
|
-
* If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.
|
|
29
|
-
*/
|
|
30
|
-
readonly id?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#matching_rule IdentityDynamicGroup#matching_rule}
|
|
33
|
-
*/
|
|
34
|
-
readonly matchingRule: string;
|
|
35
|
-
/**
|
|
36
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#name IdentityDynamicGroup#name}
|
|
37
|
-
*/
|
|
38
|
-
readonly name: string;
|
|
39
|
-
/**
|
|
40
|
-
* timeouts block
|
|
41
|
-
*
|
|
42
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#timeouts IdentityDynamicGroup#timeouts}
|
|
43
|
-
*/
|
|
44
|
-
readonly timeouts?: IdentityDynamicGroupTimeouts;
|
|
45
|
-
}
|
|
46
|
-
export interface IdentityDynamicGroupTimeouts {
|
|
47
|
-
/**
|
|
48
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#create IdentityDynamicGroup#create}
|
|
49
|
-
*/
|
|
50
|
-
readonly create?: string;
|
|
51
|
-
/**
|
|
52
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#delete IdentityDynamicGroup#delete}
|
|
53
|
-
*/
|
|
54
|
-
readonly delete?: string;
|
|
55
|
-
/**
|
|
56
|
-
* Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#update IdentityDynamicGroup#update}
|
|
57
|
-
*/
|
|
58
|
-
readonly update?: string;
|
|
59
|
-
}
|
|
60
|
-
export declare function identityDynamicGroupTimeoutsToTerraform(struct?: IdentityDynamicGroupTimeouts | cdktf.IResolvable): any;
|
|
61
|
-
export declare function identityDynamicGroupTimeoutsToHclTerraform(struct?: IdentityDynamicGroupTimeouts | cdktf.IResolvable): any;
|
|
62
|
-
export declare class IdentityDynamicGroupTimeoutsOutputReference extends cdktf.ComplexObject {
|
|
63
|
-
private isEmptyObject;
|
|
64
|
-
private resolvableValue?;
|
|
65
|
-
/**
|
|
66
|
-
* @param terraformResource The parent resource
|
|
67
|
-
* @param terraformAttribute The attribute on the parent resource this class is referencing
|
|
68
|
-
*/
|
|
69
|
-
constructor(terraformResource: cdktf.IInterpolatingParent, terraformAttribute: string);
|
|
70
|
-
get internalValue(): IdentityDynamicGroupTimeouts | cdktf.IResolvable | undefined;
|
|
71
|
-
set internalValue(value: IdentityDynamicGroupTimeouts | cdktf.IResolvable | undefined);
|
|
72
|
-
private _create?;
|
|
73
|
-
get create(): string;
|
|
74
|
-
set create(value: string);
|
|
75
|
-
resetCreate(): void;
|
|
76
|
-
get createInput(): string | undefined;
|
|
77
|
-
private _delete?;
|
|
78
|
-
get delete(): string;
|
|
79
|
-
set delete(value: string);
|
|
80
|
-
resetDelete(): void;
|
|
81
|
-
get deleteInput(): string | undefined;
|
|
82
|
-
private _update?;
|
|
83
|
-
get update(): string;
|
|
84
|
-
set update(value: string);
|
|
85
|
-
resetUpdate(): void;
|
|
86
|
-
get updateInput(): string | undefined;
|
|
87
|
-
}
|
|
88
|
-
/**
|
|
89
|
-
* Represents a {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group oci_identity_dynamic_group}
|
|
90
|
-
*/
|
|
91
|
-
export declare class IdentityDynamicGroup extends cdktf.TerraformResource {
|
|
92
|
-
static readonly tfResourceType = "oci_identity_dynamic_group";
|
|
93
|
-
/**
|
|
94
|
-
* Generates CDKTF code for importing a IdentityDynamicGroup resource upon running "cdktf plan <stack-name>"
|
|
95
|
-
* @param scope The scope in which to define this construct
|
|
96
|
-
* @param importToId The construct id used in the generated config for the IdentityDynamicGroup to import
|
|
97
|
-
* @param importFromId The id of the existing IdentityDynamicGroup that should be imported. Refer to the {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group#import import section} in the documentation of this resource for the id to use
|
|
98
|
-
* @param provider? Optional instance of the provider where the IdentityDynamicGroup to import is found
|
|
99
|
-
*/
|
|
100
|
-
static generateConfigForImport(scope: Construct, importToId: string, importFromId: string, provider?: cdktf.TerraformProvider): cdktf.ImportableResource;
|
|
101
|
-
/**
|
|
102
|
-
* Create a new {@link https://registry.terraform.io/providers/hashicorp/oci/5.47.0/docs/resources/identity_dynamic_group oci_identity_dynamic_group} Resource
|
|
103
|
-
*
|
|
104
|
-
* @param scope The scope in which to define this construct
|
|
105
|
-
* @param id The scoped construct ID. Must be unique amongst siblings in the same scope
|
|
106
|
-
* @param options IdentityDynamicGroupConfig
|
|
107
|
-
*/
|
|
108
|
-
constructor(scope: Construct, id: string, config: IdentityDynamicGroupConfig);
|
|
109
|
-
private _compartmentId?;
|
|
110
|
-
get compartmentId(): string;
|
|
111
|
-
set compartmentId(value: string);
|
|
112
|
-
get compartmentIdInput(): string | undefined;
|
|
113
|
-
private _definedTags?;
|
|
114
|
-
get definedTags(): {
|
|
115
|
-
[key: string]: string;
|
|
116
|
-
};
|
|
117
|
-
set definedTags(value: {
|
|
118
|
-
[key: string]: string;
|
|
119
|
-
});
|
|
120
|
-
resetDefinedTags(): void;
|
|
121
|
-
get definedTagsInput(): {
|
|
122
|
-
[key: string]: string;
|
|
123
|
-
} | undefined;
|
|
124
|
-
private _description?;
|
|
125
|
-
get description(): string;
|
|
126
|
-
set description(value: string);
|
|
127
|
-
get descriptionInput(): string | undefined;
|
|
128
|
-
private _freeformTags?;
|
|
129
|
-
get freeformTags(): {
|
|
130
|
-
[key: string]: string;
|
|
131
|
-
};
|
|
132
|
-
set freeformTags(value: {
|
|
133
|
-
[key: string]: string;
|
|
134
|
-
});
|
|
135
|
-
resetFreeformTags(): void;
|
|
136
|
-
get freeformTagsInput(): {
|
|
137
|
-
[key: string]: string;
|
|
138
|
-
} | undefined;
|
|
139
|
-
private _id?;
|
|
140
|
-
get id(): string;
|
|
141
|
-
set id(value: string);
|
|
142
|
-
resetId(): void;
|
|
143
|
-
get idInput(): string | undefined;
|
|
144
|
-
get inactiveState(): string;
|
|
145
|
-
private _matchingRule?;
|
|
146
|
-
get matchingRule(): string;
|
|
147
|
-
set matchingRule(value: string);
|
|
148
|
-
get matchingRuleInput(): string | undefined;
|
|
149
|
-
private _name?;
|
|
150
|
-
get name(): string;
|
|
151
|
-
set name(value: string);
|
|
152
|
-
get nameInput(): string | undefined;
|
|
153
|
-
get state(): string;
|
|
154
|
-
get timeCreated(): string;
|
|
155
|
-
private _timeouts;
|
|
156
|
-
get timeouts(): IdentityDynamicGroupTimeoutsOutputReference;
|
|
157
|
-
putTimeouts(value: IdentityDynamicGroupTimeouts): void;
|
|
158
|
-
resetTimeouts(): void;
|
|
159
|
-
get timeoutsInput(): cdktf.IResolvable | IdentityDynamicGroupTimeouts | undefined;
|
|
160
|
-
protected synthesizeAttributes(): {
|
|
161
|
-
[name: string]: any;
|
|
162
|
-
};
|
|
163
|
-
protected synthesizeHclAttributes(): {
|
|
164
|
-
[name: string]: any;
|
|
165
|
-
};
|
|
166
|
-
}
|