Hi.
Non programmer here willing to learn! We currently host all of our servers in AWS and we are using confluence to document these.
What I would like to do is have use a template in confluence. You would create a new page based on the template, call the page the ec2 instance name and there would be fields in the template for ip, instance type, instance id etc that would be automatically populated.
What is the best approach to do this? I believe confluence has some scripting plugins but only support limited languages. AWS has SDK support for the following languages:
AWS SDK for Java
AWS SDK for JavaScript
AWS SDK for .NET
AWS SDK for PHP
AWS SDK for Python (boto)
AWS SDK for Ruby
I have full access to AWS as well as the confluence server.
Any tips or pointers would be greatly appreciated.
Thanks!
Community moderators have prevented the ability to post new answers.
Documenting AWS resources via Confluence is a great idea that we have also been exploring for a bit already:
That being said, here's my take on your requirements - I think you are looking for a Confluence Blueprint, which gives users a way to create new pages based on pre-defined content:
Basic blueprints can simply help create new pages with pre-defined content from a template, static or dynamic. Blueprints don't limit you to just pre defining content and is really up to your imagination. You can take user input in a dialog wizard and pre populate content, settings or just develop templates with placeholder text (only visible in the editor) to assist users creating certain types of documents.
Confluence Server pretty much implies that you want to use the AWS SDK for Java, because Confluence Server add-ons need to be written in Java themselves (or at least run on the JVM). For example, the Write an intermediate blueprint plugin tutorial requires you to create a simple implementation of a ContextProvider
interface by extending the AbstractBlueprintContextProvider.
The subsequent Write an advanced blueprint plugin tutorial shows how you can create a blueprint that populates its template with data.
If this is for internal usage only, you can get away with embedding AWS credentials in your add-on somehow. However, if you aim to publish the resulting add-on, you need to consider a more pronounced approach to AWS Security Credentials management.
@Lee Pryor - I'm crafting my answer currently: are you looking for a static solution (i.e. populate the fields once on page creation) or a dynamic solution (i.e. the fields would track the EC2 instance state).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
@Lee Pryor - are you aiming for Confluence Server or Confluence Cloud instances, or possibly both (the integration options are very different between these)?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Community moderators have prevented the ability to post new answers.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.