🧱 scorates: actual droplet config
This commit is contained in:
		
							
								
								
									
										19
									
								
								index.ts
									
									
									
									
									
								
							
							
						
						
									
										19
									
								
								index.ts
									
									
									
									
									
								
							@@ -1,10 +1,17 @@
 | 
				
			|||||||
import * as pulumi from "@pulumi/pulumi";
 | 
					 | 
				
			||||||
import * as digitalocean from "@pulumi/digitalocean";
 | 
					import * as digitalocean from "@pulumi/digitalocean";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Create a DigitalOcean resource (Domain)
 | 
					const socrates = new digitalocean.Droplet("socrates", {
 | 
				
			||||||
const domain = new digitalocean.Domain("my-domain", {
 | 
					  backups: true,
 | 
				
			||||||
  name: "my-domain.io"
 | 
					  image: "72067660",
 | 
				
			||||||
 | 
					  ipv6: true,
 | 
				
			||||||
 | 
					  monitoring: true,
 | 
				
			||||||
 | 
					  name: "socrates",
 | 
				
			||||||
 | 
					  privateNetworking: true,
 | 
				
			||||||
 | 
					  region: digitalocean.Region.TOR1,
 | 
				
			||||||
 | 
					  size: digitalocean.DropletSlug.DropletS8VCPU16GB,
 | 
				
			||||||
 | 
					  vpcUuid: "392caea6-dc7f-11e8-b1a9-3cfdfea9ee58",
 | 
				
			||||||
 | 
					}, {
 | 
				
			||||||
 | 
					  protect: true,
 | 
				
			||||||
});
 | 
					});
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// Export the name of the domain
 | 
					export const socratesIP = socrates.ipv4Address;
 | 
				
			||||||
export const domainName = domain.name;
 | 
					 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user